aboutsummaryrefslogtreecommitdiff
path: root/include/macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/macros.h')
-rw-r--r--include/macros.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/macros.h b/include/macros.h
index 4a8108e..61f7ca3 100644
--- a/include/macros.h
+++ b/include/macros.h
@@ -11,6 +11,8 @@
#define streq(...) (!strcmp(__VA_ARGS__))
#define u8eq(...) (!u8cmp(__VA_ARGS__))
+#define TODO(s) err("%s:%s:%d: todo: %s", __FILE__, __func__, __LINE__, s)
+
#ifdef NDEBUG
# include <stddef.h>
# define ASSUME(p) ((p) ? (void)0 : unreachable())