diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-18 18:49:02 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-18 18:49:02 +0100 |
commit | a0c29514d2ab69bf1ebf22af498ddf336fc89701 (patch) | |
tree | 2ba61ecd0a325340f87c6789bf26de0664f634fa | |
parent | Moved stdarg.h inclusion into Globals.h (diff) | |
download | cuberite-a0c29514d2ab69bf1ebf22af498ddf336fc89701.tar cuberite-a0c29514d2ab69bf1ebf22af498ddf336fc89701.tar.gz cuberite-a0c29514d2ab69bf1ebf22af498ddf336fc89701.tar.bz2 cuberite-a0c29514d2ab69bf1ebf22af498ddf336fc89701.tar.lz cuberite-a0c29514d2ab69bf1ebf22af498ddf336fc89701.tar.xz cuberite-a0c29514d2ab69bf1ebf22af498ddf336fc89701.tar.zst cuberite-a0c29514d2ab69bf1ebf22af498ddf336fc89701.zip |
Diffstat (limited to '')
-rw-r--r-- | source/cMCLogger.h | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/source/cMCLogger.h b/source/cMCLogger.h index 0d1770e2d..3157ce6a8 100644 --- a/source/cMCLogger.h +++ b/source/cMCLogger.h @@ -1,11 +1,15 @@ #pragma once
-#ifndef _WIN32
- #include <stdarg.h>
-#endif
+
+
class cLog;
+
+
+
+
+
class cMCLogger //tolua_export
{ //tolua_export
private:
@@ -38,6 +42,21 @@ extern void LOGINFO(const char* a_Format, ...); extern void LOGWARN(const char* a_Format, ...);
extern void LOGERROR(const char* a_Format, ...);
+
+
+
+
+// In debug builds, translate LOGD to LOG, otherwise leave it out altogether:
+#ifdef _DEBUG
+ #define LOGD LOG
+#else
+ #define LOGD(...)
+#endif // _DEBUG
+
+
+
+
+
#define LOGWARNING LOGWARN
|