summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/helper/types.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/helper/types.h b/src/helper/types.h
index eb836c24..50f5fe2d 100644
--- a/src/helper/types.h
+++ b/src/helper/types.h
@@ -56,6 +56,10 @@ typedef bool _Bool;
#endif /* HAVE_STDBOOL_H */
+/// turns a macro argument into a string constant
+#define stringify(s) __stringify(s)
+#define __stringify(s) #s
+
/* DANGER!!!! here be dragons!
*
* Leave these fn's as byte accesses because it is safe