Fix compiling with NDEBUG flag

This commit is contained in:
Maschell 2024-05-07 06:40:45 +02:00
parent 0c6e58cb75
commit 164ec96a04

View File

@ -248,7 +248,7 @@ void response (char const *const fmt_, ...)
void addLog (LogLevel const level_, char const *const fmt_, va_list ap_)
{
#ifdef NDEBUG
if (level_ == DEBUG)
if (level_ == DEBUGLOG)
return;
#endif
#ifndef NDS
@ -278,7 +278,7 @@ void addLog (LogLevel const level_, char const *const fmt_, va_list ap_)
void addLog (LogLevel const level_, std::string_view const message_)
{
#ifdef NDEBUG
if (level_ == DEBUG)
if (level_ == DEBUGLOG)
return;
#endif