summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2023-02-02 13:27:10 +0100
committerMaria Matejka <mq@ucw.cz>2023-02-02 15:57:21 +0100
commit597a4b33a700773032038051abc4f9f5e92942bd (patch)
treefbd74970382b5ab3a6fb2fc312a783a694eca636 /lib
parent226839c97731394b98cc8c7421a152964061c1aa (diff)
Macro: stringify
Diffstat (limited to 'lib')
-rw-r--r--lib/macro.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/macro.h b/lib/macro.h
index 24fc3393..8f5d4b0e 100644
--- a/lib/macro.h
+++ b/lib/macro.h
@@ -26,6 +26,8 @@
#define MACRO_DROP(...)
#define MACRO_UNPAREN(...) __VA_ARGS__
#define MACRO_SEP(a, b, sep) a sep b
+#define MACRO_STR(a) #a
+#define MACRO_STR_AFTER(a) MACRO_STR(a)
/* Aliases for some special chars */
#define MACRO_COMMA ,