diff options
| -rw-r--r-- | wrmr.h | 20 |
1 files changed, 9 insertions, 11 deletions
@@ -50,17 +50,15 @@ typedef uintptr_t uptr; #ifndef NDEBUG # define UNREACHABLE_MSG(msg) FAIL_WITH_MSG(msg) #else - -#if __STDC_VERSION__ >= 202311L -# define UNREACHABLE_MSG(msg) (unreachable()) -#elif defined(__GNUC__) -# define UNREACHABLE_MSG(msg) (__builtin_unreachable()) -#elif defined(_MSC_VER) -# define UNREACHABLE_MSG(msg) (__assume(0)) -#else -# define UNREACHABLE_MSG(msg) do {} while(0) -#endif - +# if __STDC_VERSION__ >= 202311L +# define UNREACHABLE_MSG(msg) (unreachable()) +# elif defined(__GNUC__) +# define UNREACHABLE_MSG(msg) (__builtin_unreachable()) +# elif defined(_MSC_VER) +# define UNREACHABLE_MSG(msg) (__assume(0)) +# else +# define UNREACHABLE_MSG(msg) do {} while(0) +# endif #endif #define UNREACHABLE UNREACHABLE_MSG("unreachable code") |
