summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/cMCLogger.h25
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