From c15b40127164db3384f30a31fc93af45f91b8e8e Mon Sep 17 00:00:00 2001 From: bunnei Date: Wed, 27 Jun 2018 01:17:30 -0400 Subject: [PATCH] Ignore asserts - DO NOT CHECK IN --- src/common/assert.h | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/common/assert.h b/src/common/assert.h index 655446f34a..3d581565af 100644 --- a/src/common/assert.h +++ b/src/common/assert.h @@ -28,18 +28,12 @@ __declspec(noinline, noreturn) } #define ASSERT(_a_) \ - do \ - if (!(_a_)) { \ - assert_noinline_call([] { LOG_CRITICAL(Debug, "Assertion Failed!"); }); \ - } \ - while (0) + if (!(_a_)) { \ + } #define ASSERT_MSG(_a_, ...) \ - do \ - if (!(_a_)) { \ - assert_noinline_call([&] { LOG_CRITICAL(Debug, "Assertion Failed!\n" __VA_ARGS__); }); \ - } \ - while (0) + if (!(_a_)) { \ + } #define UNREACHABLE() ASSERT_MSG(false, "Unreachable code!") #define UNREACHABLE_MSG(...) ASSERT_MSG(false, __VA_ARGS__)