summaryrefslogtreecommitdiffstats
path: root/source/cMCLogger.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-02 08:47:19 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-02 08:47:19 +0100
commit865216b15a4cfb836dddcb9bf66532b4f46497a3 (patch)
tree789c307051468c4aa0bf030e417fff03cac3a2a1 /source/cMCLogger.h
parentRewritten cAuthenticator to make use of the new cIsThread architecture - now authentication runs in a single separate thread for all clients; (diff)
downloadcuberite-865216b15a4cfb836dddcb9bf66532b4f46497a3.tar
cuberite-865216b15a4cfb836dddcb9bf66532b4f46497a3.tar.gz
cuberite-865216b15a4cfb836dddcb9bf66532b4f46497a3.tar.bz2
cuberite-865216b15a4cfb836dddcb9bf66532b4f46497a3.tar.lz
cuberite-865216b15a4cfb836dddcb9bf66532b4f46497a3.tar.xz
cuberite-865216b15a4cfb836dddcb9bf66532b4f46497a3.tar.zst
cuberite-865216b15a4cfb836dddcb9bf66532b4f46497a3.zip
Diffstat (limited to 'source/cMCLogger.h')
-rw-r--r--source/cMCLogger.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/source/cMCLogger.h b/source/cMCLogger.h
index f37c4f642..0d1770e2d 100644
--- a/source/cMCLogger.h
+++ b/source/cMCLogger.h
@@ -1,7 +1,8 @@
+
#pragma once
#ifndef _WIN32
-#include <stdarg.h>
+ #include <stdarg.h>
#endif
class cLog;
@@ -27,7 +28,7 @@ public: //tolua_export
private:
void SetColor( unsigned char a_Color );
- cCriticalSection* m_CriticalSection;
+ cCriticalSection m_CriticalSection;
cLog* m_Log;
static cMCLogger* s_MCLogger;
}; //tolua_export
@@ -35,4 +36,10 @@ private:
extern void LOG(const char* a_Format, ...);
extern void LOGINFO(const char* a_Format, ...);
extern void LOGWARN(const char* a_Format, ...);
-extern void LOGERROR(const char* a_Format, ...); \ No newline at end of file
+extern void LOGERROR(const char* a_Format, ...);
+
+#define LOGWARNING LOGWARN
+
+
+
+