summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h5
1 files changed, 5 insertions, 0 deletions
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