Fix macro to be optimized out, thanks to Filip

svn path=/trunk/; revision=16554
This commit is contained in:
Alex Ionescu 2005-07-13 15:46:59 +00:00
parent a56f2840b3
commit 698dee2b87

View file

@ -20,7 +20,7 @@ unsigned long DbgPrint(char *Format,...);
#endif
#if !defined(DBG) || !defined(YDEBUG)
#define DPRINT(...) do { DbgPrint(__VA_ARGS__); } while(0)
#define DPRINT(...) do { if(0) { DbgPrint(__VA_ARGS__); } } while(0)
#else
#define DPRINT DbgPrint("(%s:%d:%s) ",__FILE__,__LINE__,__FUNCTION__), DbgPrint
#endif