1 #ifndef __Z_DEBUG_H 2 #define __Z_DEBUG_H 3 4 #if defined(_DEBUG) && defined(_Z_TESTMODE) 5 void assertMsg(const char *msg, const char *file, int line); 6 7 #define DEBUG(expr, msg) ((!(expr)) ? assertMsg(msg, __FILE__, __LINE__),1 : 0) 8 #else 9 #define DEBUG(expr, msg) 0 10 #endif 11 12 #endif 13