From b252d0de46cf12b8e2521b3eb42da9acc41a4cc1 Mon Sep 17 00:00:00 2001 From: Nathan Ringo Date: Wed, 27 Nov 2024 20:28:40 -0600 Subject: new simpler GC --- src/util.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/util.h') diff --git a/src/util.h b/src/util.h index 569054b..4384fcd 100644 --- a/src/util.h +++ b/src/util.h @@ -28,4 +28,9 @@ todo__impl(const char *file, int line, const char *fmt, ...); #define todo(...) todo__impl(__FILE__, __LINE__, __VA_ARGS__) +__attribute__((format(printf, 3, 4))) noreturn void +unreachable__impl(const char *file, int line, const char *fmt, ...); + +#define unreachable(...) unreachable__impl(__FILE__, __LINE__, __VA_ARGS__) + #endif // IMB3_UTIL_H -- cgit v1.2.3