| ... | @@ -38,11 +38,11 @@ ATTRIBUTE_NORETURN | ... | @@ -38,11 +38,11 @@ ATTRIBUTE_NORETURN |
| 38 | ATTRIBUTE_PRINTF(1, 2) | 38 | ATTRIBUTE_PRINTF(1, 2) |
| 39 | void zig_panic(const char *format, ...); | 39 | void zig_panic(const char *format, ...); |
| 40 | | 40 | |
| 41 | ATTRIBUTE_COLD | 41 | #ifdef WIN32 |
| 42 | ATTRIBUTE_NORETURN | 42 | #define __func__ __FUNCTION__ |
| 43 | static inline void zig_unreachable(void) { | 43 | #endif |
| 44 | zig_panic("unreachable"); | 44 | |
| 45 | } | 45 | #define zig_unreachable() zig_panic("unreachable: %s:%s:%d", __FILE__, __func__, __LINE__) |
| 46 | | 46 | |
| 47 | #if defined(_MSC_VER) | 47 | #if defined(_MSC_VER) |
| 48 | static inline int clzll(unsigned long long mask) { | 48 | static inline int clzll(unsigned long long mask) { |