Go to the documentation of this file.
30 #ifndef __CLAW_ASSERT_HPP__
31 #define __CLAW_ASSERT_HPP__
74 unsigned int line,
bool b,
const std::string& s )
78 std::cerr << file <<
":" << line <<
"\n\t"
79 << func <<
" : \n" << s << std::endl;
87 #define CLAW_ASSERT( b, s ) \
88 claw::debug_assert( __FILE__, __FUNCTION__, __LINE__, (b), (s) )
91 #define CLAW_FAIL( s ) \
92 claw::debug_assert( __FILE__, __FUNCTION__, __LINE__, false, (s) )
95 #define CLAW_PRECOND( b ) CLAW_ASSERT( b, "precondition failed: " #b )
98 #define CLAW_POSTCOND( b ) CLAW_ASSERT( b, "postcondition failed: " #b )
102 #define CLAW_ASSERT( b, s )
103 #define CLAW_FAIL( s )
104 #define CLAW_PRECOND( b )
105 #define CLAW_POSTCOND( b )
109 #endif // __CLAW_ASSERT_HPP__