forked from mirror/openmw-tes3mp
Fix macro for MSVC
This commit is contained in:
parent
18026d4a50
commit
19240b825d
1 changed files with 6 additions and 0 deletions
|
@ -17,10 +17,16 @@
|
|||
#else
|
||||
#define LOG_INIT(logLevel) Log::Create(logLevel)
|
||||
#define LOG_QUIT() Log::Delete()
|
||||
#if defined(_MSC_VER)
|
||||
#define LOG_MESSAGE(level, msg, ...) Log::Get().print((level), (1), (__FILE__), (__LINE__), (msg), __VA_ARGS__)
|
||||
#define LOG_MESSAGE_SIMPLE(level, msg, ...) Log::Get().print((level), (1), (0), (0), (msg), __VA_ARGS__)
|
||||
#define LOG_APPEND(level, msg, ...) Log::Get().print((level), (0), (0), (0), (msg), __VA_ARGS__)
|
||||
#else
|
||||
#define LOG_MESSAGE(level, msg, args...) Log::Get().print((level), (1), (__FILE__), (__LINE__), (msg), ##args)
|
||||
#define LOG_MESSAGE_SIMPLE(level, msg, args...) Log::Get().print((level), (1), (0), (0), (msg), ##args)
|
||||
#define LOG_APPEND(level, msg, args...) Log::Get().print((level), (0), (0), (0), (msg), ##args)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
class Log
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue