bugfix for stubbing out macro of logging code for win32
This commit is contained in:
parent
8aa14009d1
commit
f192b33153
|
@ -109,14 +109,24 @@ public:
|
|||
// Let the macro call into this when require.. NEVER call it automatically.
|
||||
static void handleDebug(DebugType type, const char *fmt, ...);
|
||||
|
||||
// If logging is enabled then define the logging method
|
||||
#ifndef UNDEF_DEBUG
|
||||
|
||||
#ifndef WIN32
|
||||
#define OutputDebug(type, fmt, ...) SystemFlags::handleDebug (type, fmt, ##__VA_ARGS__)
|
||||
|
||||
#else
|
||||
#define OutputDebug(type, fmt, ...) handleDebug (type, fmt, ##__VA_ARGS__)
|
||||
#endif
|
||||
|
||||
// stub out logging
|
||||
#else
|
||||
// stub out debugging completely
|
||||
#ifndef WIN32
|
||||
#define OutputDebug(type, fmt, ...) type
|
||||
#else
|
||||
static void nothing() {}
|
||||
#define OutputDebug(type, fmt, ...) nothing()
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user