aboutsummaryrefslogtreecommitdiff
path: root/chad/experimental
diff options
context:
space:
mode:
authoranon2025-09-13 16:38:06 +0200
committeranon2025-09-13 16:38:06 +0200
commitc2b90a627b2376fcd934bb1c730dcc3ecc302bd9 (patch)
treee08332c1deb5dd035c844dcb2b8987f5a9b54e85 /chad/experimental
parent75611ac25b15d43b3f37878a3480cc37a4f48d80 (diff)
downloadlibchad-c2b90a627b2376fcd934bb1c730dcc3ecc302bd9.tar.xz
libchad-c2b90a627b2376fcd934bb1c730dcc3ecc302bd9.tar.zst
improve STRINGIFY
Diffstat (limited to 'chad/experimental')
-rw-r--r--chad/experimental/bits.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/chad/experimental/bits.h b/chad/experimental/bits.h
index a1518e2..d2834a8 100644
--- a/chad/experimental/bits.h
+++ b/chad/experimental/bits.h
@@ -8,7 +8,9 @@
#define MIN(x, y) (((x) < (y)) ? (x) : (y))
#define MAX(x, y) (((x) > (y)) ? (x) : (y))
-#define STRINGIFY(x) #x
+
+#define _STRINGIFY(...) # __VA_ARGS__
+#define STRINGIFY(...) _STRINGIFY(__VA_ARGS__)
// could be a generic
static inline