32 #ifndef CHECK_INCLUDED 33 #define CHECK_INCLUDED 38 #if defined(VL_PLATFORM_WINDOWS) 39 #ifndef WIN32_LEAN_AND_MEAN 40 #define WIN32_LEAN_AND_MEAN 1 48 #if defined(__GNUG__) || defined(__MINGW32__) 59 #define VL_COMPILE_TIME_CHECK( expr ) typedef char compile_time_assert[ (expr) ? 1 : -1 ]; 61 #if defined(_DEBUG) || !defined(NDEBUG) || VL_FORCE_CHECKS == 1 65 #define VL_TRAP() { if (IsDebuggerPresent()) { __debugbreak(); } else ::vl::abort_vl(); } 67 #elif defined(__GNUG__) || defined(__MINGW32__) 68 #define VL_TRAP() { fflush(stdout); fflush(stderr); asm("int $0x3"); } 70 #define VL_TRAP() { ::vl::abort_vl(); } 73 #define VL_CHECK(expr) { if(!(expr)) { ::vl::log_failed_check(#expr,__FILE__,__LINE__); VL_TRAP() } } 74 #define VL_WARN(expr) { if(!(expr)) { ::vl::log_failed_check(#expr,__FILE__,__LINE__); } } 79 #define VL_WARN(expr) {} 80 #define VL_CHECK(expr) {} VLCORE_EXPORT void abort_vl()
VLCORE_EXPORT void log_failed_check(const char *, const char *, int)
Visualization Library main namespace.