mirror of
https://github.com/glest/glest-source.git
synced 2025-02-25 04:02:30 +01:00
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.
|
// Let the macro call into this when require.. NEVER call it automatically.
|
||||||
static void handleDebug(DebugType type, const char *fmt, ...);
|
static void handleDebug(DebugType type, const char *fmt, ...);
|
||||||
|
|
||||||
|
// If logging is enabled then define the logging method
|
||||||
#ifndef UNDEF_DEBUG
|
#ifndef UNDEF_DEBUG
|
||||||
|
|
||||||
|
#ifndef WIN32
|
||||||
#define OutputDebug(type, fmt, ...) SystemFlags::handleDebug (type, fmt, ##__VA_ARGS__)
|
#define OutputDebug(type, fmt, ...) SystemFlags::handleDebug (type, fmt, ##__VA_ARGS__)
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
#define OutputDebug(type, fmt, ...) handleDebug (type, fmt, ##__VA_ARGS__)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// stub out logging
|
||||||
|
#else
|
||||||
// stub out debugging completely
|
// stub out debugging completely
|
||||||
#define OutputDebug(type, fmt, ...) type
|
#ifndef WIN32
|
||||||
|
#define OutputDebug(type, fmt, ...) type
|
||||||
|
#else
|
||||||
|
static void nothing() {}
|
||||||
|
#define OutputDebug(type, fmt, ...) nothing()
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user