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:
Kacper Michajłow committed 2026-06-27 20:39:35 +02:00
1 parent fb6c700ecb
commit a40319a514
1 file changed
+1 -1
+1 -1
View File
@@ -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)