00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00026 #ifndef DebugSupportH
00027 #define DebugSupportH
00028
00029 #ifndef CompilerSwitchesH
00030 #error The "CompilerSwitches.h" header file must be included before this file.
00031 #endif
00032
00033 #if defined(USE_SYSTEM_ASSERT) || defined(NDEBUG)
00034 #include <assert.h>
00035 #else
00036 #include <stdio.h>
00037 #undef assert
00038 #define assert(expr) ((expr) || fprintf(stderr,"*** WARNING ***: Assertion (%s) failed in file %s at line %d.\n",#expr,__FILE__,__LINE__))
00039 #endif
00040
00041 #endif