Skip to content

Commit

Permalink
Fix compiling with NDEBUG flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Maschell committed May 7, 2024
1 parent 0c6e58c commit 164ec96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 164ec96

Please sign in to comment.