Log: Channel is [[maybe_unused]]

This commit is contained in:
Stenzek 2024-05-22 22:16:58 +10:00
parent d9cc80c7f9
commit e01efaa681
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -82,7 +82,8 @@ ALWAYS_INLINE static void WriteFmt(const char* channelName, const char* function
} // namespace Log
// log wrappers
#define Log_SetChannel(ChannelName) [[maybe_unused]] static const char* ___LogChannel___ = #ChannelName;
#define Log_SetChannel(ChannelName) \
[[maybe_unused]] [[maybe_unused]] static const char* ___LogChannel___ = #ChannelName;
#define Log_ErrorPrint(msg) Log::Write(___LogChannel___, __func__, LOGLEVEL_ERROR, msg)
#define Log_ErrorPrintf(...) Log::Writef(___LogChannel___, __func__, LOGLEVEL_ERROR, __VA_ARGS__)
#define Log_ErrorFmt(...) Log::WriteFmt(___LogChannel___, __func__, LOGLEVEL_ERROR, __VA_ARGS__)