1
0

Logging: added LOGD macro that logs only in debug builds

git-svn-id: http://mc-server.googlecode.com/svn/trunk@290 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com 2012-02-18 17:49:02 +00:00
parent b173748c45
commit a0c29514d2

View File

@ -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