From 981b56b84604a804f1c0c7ae3844c14c450407dd Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Wed, 11 Aug 2021 20:06:39 +0200 Subject: [PATCH] CustomAssert: fix macro in release being borked --- include/CustomAssert.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/CustomAssert.h b/include/CustomAssert.h index 5a04e5e..db161d5 100644 --- a/include/CustomAssert.h +++ b/include/CustomAssert.h @@ -63,14 +63,14 @@ inline void _assert([[maybe_unused]] const char* file, [[maybe_unused]] const ch do { \ if (!result) { \ Sentry.LogAssert(#cond, _file_basename, _line, __func__); \ - } -} -while (false) + } \ + } while (false) #define AssertNotReachable() \ do { \ if (!result) { \ Sentry.LogAssert("code is unreachable", _file_basename, _line, __func__); \ - } + } \ + } while (false) } while (false) #endif // DEBUG