| author | |
| committer | |
| log | 4c273126dfc44cf4fcf9d5d97bf1cb1da07d7bd7 |
| tree | 49f6f2c20050d0f6d7d26060e6dd4e0bccfd8829 |
| parent | b85b68a7fd175169e0f07ab733bde6d5654b1044 |
This greatly aids debugging on platforms with no stack-traces.1 files changed, 5 insertions(+), 5 deletions(-)
src/util.hpp+5-5| ... | ... | @@ -38,11 +38,11 @@ ATTRIBUTE_NORETURN |
| 38 | 38 | ATTRIBUTE_PRINTF(1, 2) |
| 39 | 39 | void zig_panic(const char *format, ...); |
| 40 | 40 | |
| 41 | ATTRIBUTE_COLD | |
| 42 | ATTRIBUTE_NORETURN | |
| 43 | static inline void zig_unreachable(void) { | |
| 44 | zig_panic("unreachable"); | |
| 45 | } | |
| 41 | #ifdef WIN32 | |
| 42 | #define __func__ __FUNCTION__ | |
| 43 | #endif | |
| 44 | ||
| 45 | #define zig_unreachable() zig_panic("unreachable: %s:%s:%d", __FILE__, __func__, __LINE__) | |
| 46 | 46 | |
| 47 | 47 | #if defined(_MSC_VER) |
| 48 | 48 | static inline int clzll(unsigned long long mask) { |