BAN: Update ASSERT_NOT_REACHED message

This commit is contained in:
Bananymous 2024-03-08 22:11:39 +02:00
parent 23a2f8b903
commit 54d0cb47cd
1 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@
? __ban_assertion_failed(__FILE__ ":" __ban_assert_stringify(__LINE__), "ASSERT(" #cond ") failed") \ ? __ban_assertion_failed(__FILE__ ":" __ban_assert_stringify(__LINE__), "ASSERT(" #cond ") failed") \
: (void)0) : (void)0)
#define ASSERT_NOT_REACHED() ASSERT(false) #define ASSERT_NOT_REACHED() \
__ban_assertion_failed(__FILE__ ":" __ban_assert_stringify(__LINE__), "ASSERT_NOT_REACHED() reached")
[[noreturn]] void __ban_assertion_failed(const char* location, const char* msg); [[noreturn]] void __ban_assertion_failed(const char* location, const char* msg);