34 virtual std::string
build_message(
const char* condition_text,
const std::string &msg,
bool constant_expression=
false) throw() ;
36 void setup(const
char *condition, const
std::
string &
message,
bool constant_expression);
68#ifndef N_ERS_STATIC_ASSERT
69#define ERS_STATIC_ASSERT(expr) { ers::Compile_time_error <((expr) != 0)> ERROR_ASSERTION_FAILED ; (void) ERROR_ASSERTION_FAILED ; }
71#define ERS_STATIC_ASSERT(expr)
84#define ERS_ASSERT(expr,...) { if(!(expr)) { char assertion_buffer[256] ; snprintf(assertion_buffer,sizeof(assertion_buffer), __VA_ARGS__) ; ers::Assertion failed_assertion(ERS_HERE, ers::error, #expr,assertion_buffer,__builtin_constant_p(expr)) ; throw failed_assertion ; } }
86#define ERS_ASSERT(expr,...) { if(!(expr)) { char assertion_buffer[256] ; snprintf(assertion_buffer,sizeof(assertion_buffer), __VA_ARGS__) ; ers::Assertion failed_assertion(ERS_HERE, ers::error,#expr,assertion_buffer,false) ; throw failed_assertion ; } }
89#define ERS_ASSERT(expr,...) ((void) (expr))
This Issue represents a basic assertion.
static const char *const MESSAGE_ELEMENTS[]
static const char *const CLASS_NAME
static const char *const ASSERT_CONDITION_KEY
void setup(const char *condition, const std::string &message, bool constant_expression)
virtual std::string build_message(const char *condition_text, const std::string &msg, bool constant_expression=false)
virtual const char * get_class_name() const
Get key for class (used for serialisation)
Source context for Issue.
const std::string & message() const
Message.
enum ers::_severity_t severity_t
compile time error structure.