mirror of
https://github.com/blendogames/thirtyflightsofloving.git
synced 2024-11-15 00:41:21 +00:00
12 lines
274 B
C
12 lines
274 B
C
|
#ifndef __Z_DEBUG_H
|
||
|
#define __Z_DEBUG_H
|
||
|
|
||
|
#if defined(_DEBUG) && defined(_Z_TESTMODE)
|
||
|
void assertMsg(const char *msg, const char *file, int line);
|
||
|
|
||
|
#define DEBUG(expr, msg) ((!(expr)) ? assertMsg(msg, __FILE__, __LINE__),1 : 0)
|
||
|
#else
|
||
|
#define DEBUG(expr, msg) 0
|
||
|
#endif
|
||
|
|
||
|
#endif
|