CGEM BOSS 6.6.5.h
BESIII Offline Software System
|
Go to the source code of this file.
Classes | |
class | ers::Assertion |
This Issue represents a basic assertion. More... | |
struct | ers::Compile_time_error< true > |
compile time error structure More... | |
Namespaces | |
namespace | ers |
Macros | |
#define | ERS_STATIC_ASSERT(expr) |
#define | ERS_ASSERT(expr, ...) |
This file defines the assertion class and the associated macros.
Definition in file Event/ers/ers-00-00-03/ers/Assertion.h.
#define ERS_ASSERT | ( | expr, | |
... ) |
if e is not true, then an issue of type ers::Asertion is thrown with message msg. The msg is actually a formatting string, like printf, that can be used with subsequent parameters. If the compiler is gcc, then the transient field of the assertion is set according to the transcience of the expression. This means that if the expression is detected by the compiler as being constant,
N_ERS_ASSERT
macro is defined Definition at line 86 of file Event/ers/ers-00-00-03/ers/Assertion.h.
Referenced by ers::IssueFactory::build().
#define ERS_STATIC_ASSERT | ( | expr | ) |
Compile time assertion can only be done on constant factors (i.e compile-time known quantities).
Definition at line 69 of file Event/ers/ers-00-00-03/ers/Assertion.h.
Referenced by main().