diff options
| author | WormHeamer | 2025-12-18 19:20:58 -0500 |
|---|---|---|
| committer | WormHeamer | 2025-12-18 19:20:58 -0500 |
| commit | a73f1409d372d88ddcac7dfa68cd685ac1aab9d4 (patch) | |
| tree | d31e2a55db7b29de977d2a81e1cc9057566298ba | |
| parent | ce66eebb6ca4588224cd2cf0a38c0e6ffbfcee01 (diff) | |
wrmr.h formatting tweak
| -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") |
