24 #ifndef _TPIE_ASSERT_H
25 #define _TPIE_ASSERT_H
27 #include <tpie/config.h>
36 #if !defined(TPIE_NDEBUG) || defined(DOXYGEN)
39 #pragma warning ( disable : 4127 )
47 #define tp_assert(condition,message) { \
48 if (!((condition) && 1)) { \
49 TP_LOG_FATAL_ID("Assertion failed:"); \
50 TP_LOG_FATAL_ID(message); \
51 std::cerr << "Assertion (" #condition ") failed " __FILE__ ":" \
52 << __LINE__ << ": " << message << "\n"; \
59 #define tp_assert(condition,message)
64 #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.