2004-02-04 17:57:56 +00:00
|
|
|
#ifdef NDEBUG
|
2009-08-21 15:57:26 +00:00
|
|
|
#define DPRINT(...)
|
2004-02-04 17:57:56 +00:00
|
|
|
#define CHECKPOINT
|
|
|
|
#else
|
2009-08-21 15:57:26 +00:00
|
|
|
#define DPRINT(...) do { DebugPrint("(SAMLIB:%s:%d) ",__FILE__,__LINE__); DebugPrint(__VA_ARGS__); } while(0)
|
2004-02-04 17:57:56 +00:00
|
|
|
#define CHECKPOINT do { DebugPrint("(SAMLIB:%s:%d) Checkpoint\n",__FILE__,__LINE__); } while(0)
|
|
|
|
#endif
|
|
|
|
|
2009-08-21 15:57:26 +00:00
|
|
|
#define DPRINT1(...) do { DebugPrint("(SAMLIB:%s:%d) ",__FILE__,__LINE__); DebugPrint(__VA_ARGS__); } while(0)
|
2004-02-04 17:57:56 +00:00
|
|
|
#define CHECKPOINT1 do { DebugPrint("(SAMLIB:%s:%d) Checkpoint\n",__FILE__,__LINE__); } while(0)
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
DebugPrint(char* fmt,...);
|
|
|
|
|
|
|
|
/* EOF */
|