diff options
author | yuzubot <yuzu@yuzu-emu.org> | 2019-09-22 14:38:23 +0000 |
---|---|---|
committer | yuzubot <yuzu@yuzu-emu.org> | 2019-09-22 14:38:23 +0000 |
commit | 1bb74e998cead891c21f2efd17a60f936fa7d454 (patch) | |
tree | abd5e24856266892832769f55ff1a2919d71cd1a | |
parent | aaec1562f8631303d1a5abb6c75f2422d6d7cf71 (diff) |
"Merge PR 1340"mainline-678
-rw-r--r-- | src/common/assert.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/common/assert.h b/src/common/assert.h index 4b0e3f64ee..be73a7e1ba 100644 --- a/src/common/assert.h +++ b/src/common/assert.h @@ -28,18 +28,14 @@ __declspec(noinline, noreturn) } #define ASSERT(_a_) \ - do \ - if (!(_a_)) { \ - assert_noinline_call([] { LOG_CRITICAL(Debug, "Assertion Failed!"); }); \ - } \ - while (0) + if (!(_a_)) { \ + LOG_CRITICAL(Debug, "Assertion Failed!"); \ + } #define ASSERT_MSG(_a_, ...) \ - do \ - if (!(_a_)) { \ - assert_noinline_call([&] { LOG_CRITICAL(Debug, "Assertion Failed!\n" __VA_ARGS__); }); \ - } \ - while (0) + if (!(_a_)) { \ + LOG_CRITICAL(Debug, "Assertion Failed! " __VA_ARGS__); \ + } #define UNREACHABLE() ASSERT_MSG(false, "Unreachable code!") #define UNREACHABLE_MSG(...) ASSERT_MSG(false, __VA_ARGS__) |