From 164ec96a046b124ec235ecef71bdf9561e33c7f6 Mon Sep 17 00:00:00 2001 From: Maschell Date: Tue, 7 May 2024 06:40:45 +0200 Subject: [PATCH] Fix compiling with NDEBUG flag --- source/log.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/log.cpp b/source/log.cpp index bdcaa5f..8de4827 100644 --- a/source/log.cpp +++ b/source/log.cpp @@ -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