aboutsummaryrefslogtreecommitdiff
path: root/util/util.h
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2025-07-09 22:49:24 +0300
committerkartofen <mladenovnasko0@gmail.com>2025-07-09 22:49:24 +0300
commitd69d2e7a7e09c4f08cd416241e2f2d9dc7d7d05f (patch)
treed8b32a0749e79ddc79ce998a382ee7dc06f0a175 /util/util.h
parent2c85f2d087b9b2f3922b856beed4e2dd5b0fc126 (diff)
untested precednece lol
Diffstat (limited to 'util/util.h')
-rw-r--r--util/util.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/util/util.h b/util/util.h
new file mode 100644
index 0000000..9dc29d8
--- /dev/null
+++ b/util/util.h
@@ -0,0 +1,12 @@
+#ifndef UTIL_H
+#define UTIL_H
+
+#define IMPLEMENT_FUNCPTR(type, name, args) \
+ type __##name args; \
+ type (*name) args = __##name; \
+ type __##name args
+
+#define X_TO_STR(s) #s,
+#define X_TO_ENUM(s) s,
+
+#endif