From d2aeb5650341ed21fd28c6c71bd3dbb4f3c52613 Mon Sep 17 00:00:00 2001 From: MerryMage Date: Fri, 5 Aug 2016 18:39:47 +0100 Subject: [PATCH] Common: DEBUG_ASSERTs weren't enabled --- src/common/assert.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/assert.h b/src/common/assert.h index b9c954b1..dccf053e 100644 --- a/src/common/assert.h +++ b/src/common/assert.h @@ -40,12 +40,12 @@ static void assert_noinline_call(const Fn& fn) { #define UNREACHABLE() ASSERT_MSG(false, "Unreachable code!") #define UNREACHABLE_MSG(...) ASSERT_MSG(false, __VA_ARGS__) -#ifdef _DEBUG -#define DEBUG_ASSERT(_a_) ASSERT(_a_) -#define DEBUG_ASSERT_MSG(_a_, ...) ASSERT_MSG(_a_, __VA_ARGS__) -#else // not debug +#ifdef NDEBUG #define DEBUG_ASSERT(_a_) #define DEBUG_ASSERT_MSG(_a_, ...) +#else // debug +#define DEBUG_ASSERT(_a_) ASSERT(_a_) +#define DEBUG_ASSERT_MSG(_a_, ...) ASSERT_MSG(_a_, __VA_ARGS__) #endif #define UNIMPLEMENTED() DEBUG_ASSERT_MSG(false, "Unimplemented code!")