aboutsummaryrefslogtreecommitdiff
path: root/macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'macros.h')
-rw-r--r--macros.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/macros.h b/macros.h
index 7cfe777e..2ecda603 100644
--- a/macros.h
+++ b/macros.h
@@ -2,6 +2,7 @@
#define PASTE(a, b) a##b
#define XPASTE(a, b) PASTE(a, b)
+#define STRLEN(str) (sizeof("" str "") - 1)
#define DO_PRAGMA(x) _Pragma(#x)
#define VERCMP(x, y, cx, cy) ((cx > x) || ((cx == x) && (cy >= y)))