Go to the documentation of this file.
24 #ifndef _TPIE_ASSERT_H
25 #define _TPIE_ASSERT_H
27 #include <tpie/config.h>
43 #define tp_assert_release(condition,message) { \
44 if (!((condition) && 1)) { \
45 TP_LOG_FATAL_ID("Assertion failed:"); \
46 TP_LOG_FATAL_ID(message); \
47 std::cerr << "Assertion (" #condition ") failed " __FILE__ ":" \
48 << __LINE__ << ": " << message << "\n"; \
54 #if !defined(TPIE_NDEBUG) || defined(DOXYGEN)
57 #pragma warning ( disable : 4127 )
65 #define tp_assert(condition,message) tp_assert_release(condition,message)
67 #define tp_assert(condition,message)
72 #endif // _TPIE_ASSERT_H