mirror of
https://github.com/yuzu-emu/yuzu-mainline.git
synced 2025-09-10 16:47:04 +00:00
"Merge PR 1340"
This commit is contained in:
parent
34b2c60f95
commit
dee47fbd85
|
@ -28,18 +28,14 @@ __declspec(noinline, noreturn)
|
||||||
}
|
}
|
||||||
|
|
||||||
#define ASSERT(_a_) \
|
#define ASSERT(_a_) \
|
||||||
do \
|
|
||||||
if (!(_a_)) { \
|
if (!(_a_)) { \
|
||||||
assert_noinline_call([] { LOG_CRITICAL(Debug, "Assertion Failed!"); }); \
|
LOG_CRITICAL(Debug, "Assertion Failed!"); \
|
||||||
} \
|
}
|
||||||
while (0)
|
|
||||||
|
|
||||||
#define ASSERT_MSG(_a_, ...) \
|
#define ASSERT_MSG(_a_, ...) \
|
||||||
do \
|
|
||||||
if (!(_a_)) { \
|
if (!(_a_)) { \
|
||||||
assert_noinline_call([&] { LOG_CRITICAL(Debug, "Assertion Failed!\n" __VA_ARGS__); }); \
|
LOG_CRITICAL(Debug, "Assertion Failed! " __VA_ARGS__); \
|
||||||
} \
|
}
|
||||||
while (0)
|
|
||||||
|
|
||||||
#define UNREACHABLE() ASSERT_MSG(false, "Unreachable code!")
|
#define UNREACHABLE() ASSERT_MSG(false, "Unreachable code!")
|
||||||
#define UNREACHABLE_MSG(...) ASSERT_MSG(false, __VA_ARGS__)
|
#define UNREACHABLE_MSG(...) ASSERT_MSG(false, __VA_ARGS__)
|
||||||
|
|
Loading…
Reference in a new issue