00001 #ifndef _DEBUG_H_ 00002 #define _DEBUG_H_ 00003 00004 #ifdef _DEBUG 00005 #define DBG(x) x 00006 #ifdef _MSC_VER 00007 #include <crtdbg.h> 00008 #define MSCDBG(x) x 00009 #else 00010 #define MSCDBG(x) 00011 #endif 00012 #else 00013 #define DBG(x) 00014 #define MSCDBG(x) 00015 #endif 00016 00017 int dbg_printf(const char *fmt, ...); 00018 00019 #endif // _DEBUG_H_