Go to the documentation of this file.
10 #define RASSERT(condition, message)\
11 EXCEPTION_ASSERT(std::runtime_error, condition, message)
14 #define LASSERT(condition, message)\
15 EXCEPTION_ASSERT(std::logic_error, condition, message)
18 #define RVASSERT(condition, message)\
19 VERBOSE_EXCEPTION_ASSERT(std::runtime_error, condition, message)
22 #define LVASSERT(condition, message)\
23 VERBOSE_EXCEPTION_ASSERT(std::logic_error, condition, message)
26 #define EXCEPTION_ASSERT(type, condition, message){\
27 if((condition) == false){\
28 std::ostringstream buffer;\
29 buffer << "ERROR in file " << __FILE__ << " line " << __LINE__ << ": " << message;\
30 throw type(buffer.str());\
35 #define VERBOSE_EXCEPTION_ASSERT(type, condition, message){\
36 if((condition) == false){\
37 std::ostringstream buffer;\
38 buffer << "ERROR in file " << __FILE__ << " line " << __LINE__ << ": " << message;\
39 std::cerr << buffer.str() << endl;\
40 throw type(buffer.str());\
45 #define ASSERT(condition, message) assert(condition)