24 #ifndef _TPIE_ASSERT_H
25 #define _TPIE_ASSERT_H
27 #include <tpie/config.h>
37 #if !defined(TPIE_NDEBUG) || defined(DOXYGEN)
40 #pragma warning ( disable : 4127 )
48 #define tp_assert(condition,message) { \
49 if (!((condition) && 1)) { \
50 TP_LOG_FATAL_ID("Assertion failed:"); \
51 TP_LOG_FATAL_ID(message); \
52 std::cerr << "Assertion (" #condition ") failed " __FILE__ ":" \
53 << __LINE__ << ": " << message << "\n"; \
60 #define tp_assert(condition,message)
65 #endif // _TPIE_ASSERT_H
This file contains a few deprecated definitions for legacy code.
Logging functionality and log_level codes for different priorities of log messages.