From c01deff683d9192a71f851815dbea4bba14e4f04 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 8 Jun 2017 18:50:21 -0700 Subject: [PATCH] Fix LC_DEBUG not working if NDEBUG is defined --- src/Platform.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Platform.h b/src/Platform.h index 487135c..7589c36 100644 --- a/src/Platform.h +++ b/src/Platform.h @@ -63,6 +63,10 @@ void LimelogWindows(char* Format, ...); #ifndef NDEBUG #define NDEBUG #endif +#else +#ifdef NDEBUG +#undef NDEBUG +#endif #endif #include #define LC_ASSERT(x) assert(x)