summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2025-04-12 10:54:23 -0700
committerVito Caputo <vcaputo@pengaru.com>2025-04-12 10:54:23 -0700
commit77a5a77216e8c174e1df516d660c79643576c43c (patch)
tree780d1697ce288f007243e83ba0bf221091d24357
parent35f42dbe74fee4b7dfcbb71def66dbc288acda18 (diff)
util: add STRINGIFY() macro
-rw-r--r--src/util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index b166efe..b499ab3 100644
--- a/src/util.h
+++ b/src/util.h
@@ -23,4 +23,7 @@
#define MAX(_a, _b) ((_a) > (_b) ? (_a) : (_b))
#define NELEMS(_a) (sizeof(_a) / sizeof(_a[0]))
+#define _STRINGIFY(_a) #_a
+#define STRINGIFY(_a) _STRINGIFY(_a)
+
#endif
© All Rights Reserved