mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Logging: Improved generated code for log statements (length of text is computed at compile time)
This commit is contained in:
@@ -22,11 +22,11 @@
|
||||
#include "Log.h"
|
||||
#include "Player.h"
|
||||
|
||||
#define TC_LOG_CHAT(TYPE, ...) \
|
||||
if (lang != LANG_ADDON && lang != LANG_ADDON_LOGGED) \
|
||||
TC_LOG_DEBUG("chat.log." TYPE, __VA_ARGS__); \
|
||||
else \
|
||||
TC_LOG_DEBUG("chat.log.addon." TYPE, __VA_ARGS__);
|
||||
#define TC_LOG_CHAT(TYPE, MESSAGE, ...) \
|
||||
if (lang != LANG_ADDON && lang != LANG_ADDON_LOGGED) \
|
||||
TC_LOG_DEBUG("chat.log." TYPE, MESSAGE, __VA_ARGS__); \
|
||||
else \
|
||||
TC_LOG_DEBUG("chat.log.addon." TYPE, MESSAGE, __VA_ARGS__);
|
||||
|
||||
class ChatLogScript : public PlayerScript
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user