diff options
author | yuzubot <yuzu@yuzu-emu.org> | 2019-10-08 12:01:25 +0000 |
---|---|---|
committer | yuzubot <yuzu@yuzu-emu.org> | 2019-10-08 12:01:25 +0000 |
commit | f13bae45d0a923451e471ccbca3765dcd754f458 (patch) | |
tree | 3e0f099594339c9e4ee257e02dac2e27637ae966 /src | |
parent | f709f3fbb709afd440cb490bbee48da0ec4ced5a (diff) |
"Merge Tagged PR 1340"
Diffstat (limited to 'src')
-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__) |