mirror of
https://github.com/glest/glest-source.git
synced 2025-08-16 21:33:59 +02:00
bugfix for stubbing out macro of logging code for win32
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user