From 0242759cbe1b282ba6fad074617b3e521c23c496 Mon Sep 17 00:00:00 2001 From: fallenoak Date: Fri, 3 Mar 2023 17:30:24 -0600 Subject: [PATCH] fix(debug): clean up assert macros --- bc/Debug.hpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bc/Debug.hpp b/bc/Debug.hpp index f88e04c..119603a 100644 --- a/bc/Debug.hpp +++ b/bc/Debug.hpp @@ -6,14 +6,13 @@ #if defined(NDEBUG) #define BLIZZARD_ASSERT(x) \ - if (!(x)) { \ - return 0; \ - } + (void)0 #else #define BLIZZARD_ASSERT(x) \ if (!(x)) { \ Blizzard::Debug::Assert(#x, __FILE__, __LINE__); \ - } + } \ + (void)0 #endif namespace Blizzard {