osdep/compiler: make MP_ASSERT_UNREACHABLE no return
On some platforms assert is continuable, we don't want that, so abort() just after.
This commit is contained in:
1 parent
fb6c700ecb
commit
a40319a514
1 file changed
+1
-1
+1
-1
@@ -49,7 +49,7 @@
|
||||
#endif
|
||||
|
||||
#ifndef NDEBUG
|
||||
#define MP_ASSERT_UNREACHABLE() assert(!"unreachable")
|
||||
#define MP_ASSERT_UNREACHABLE() (assert(!"unreachable"), abort())
|
||||
#elif __has_builtin(__builtin_unreachable)
|
||||
#define MP_ASSERT_UNREACHABLE() __builtin_unreachable()
|
||||
#elif defined(_MSC_VER)
|
||||
|
||||
Reference in new issue
Block a user