|
|
|||
File indexing completed on 2025-12-17 10:15:19
0001 #ifndef MAD_DBG_H 0002 #define MAD_DBG_H 0003 0004 // always enable assertion 0005 #undef NDEBUG 0006 #define NDEBUG 1 0007 #include <assert.h> 0008 0009 #ifdef _ASSERT_DBG 0010 0011 /* special assert that loops to let the debugger to catch the process through 0012 its PID and perform a backtrace. */ 0013 0014 #undef assert 0015 #define assert(c) ((void)( (c) || (__assert_fail(#c, __FILE__, __LINE__, __func__),1) )) 0016 0017 #endif // MAD_ASSERT_DBG 0018 0019 void __assert_fail(const char *assertion, const char *file, int line, const char *function); 0020 0021 #endif // MAD_DBG_H
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|