aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/common.h
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-09-03 20:40:18 +0900
committernsfisis <nsfisis@gmail.com>2025-09-03 20:40:18 +0900
commit1d7cd873dff0ee54aa41434c8b001a5cd467dc3c (patch)
tree88c0a73206b5b81731e86d668ecb3ed2f7b6df16 /src/common.h
parent980d73ce25b116e645b16e9ed37dcf55fdffad7a (diff)
downloadducc-1d7cd873dff0ee54aa41434c8b001a5cd467dc3c.tar.gz
ducc-1d7cd873dff0ee54aa41434c8b001a5cd467dc3c.tar.zst
ducc-1d7cd873dff0ee54aa41434c8b001a5cd467dc3c.zip
feat: add --std=c23
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
index 4bd4c17..332b61d 100644
--- a/src/common.h
+++ b/src/common.h
@@ -5,7 +5,11 @@
_Noreturn void fatal_error(const char* msg, ...);
+// TODO
+#ifdef __ducc__
#define unreachable() fatal_error("%s:%d: unreachable", __FILE__, __LINE__)
+#endif
+
#define unimplemented() fatal_error("%s:%d: unimplemented", __FILE__, __LINE__)
bool str_ends_with(const char* s, const char* suffix);