]> mj.ucw.cz Git - libucw.git/commitdiff
Added STRINGIFY macro.
authorMartin Mares <mj@ucw.cz>
Thu, 29 Jan 2004 21:18:21 +0000 (21:18 +0000)
committerMartin Mares <mj@ucw.cz>
Thu, 29 Jan 2004 21:18:21 +0000 (21:18 +0000)
lib/lib.h

index 658feabfde47857d9e36e8622bec723781f1858f..923afca5622d349a258f82b08b359e6c0a3171b6 100644 (file)
--- a/lib/lib.h
+++ b/lib/lib.h
@@ -36,6 +36,7 @@
 #define CLAMP(x,min,max) ({ int _t=x; (_t < min) ? min : (_t > max) ? max : _t; })
 #define ABS(x) ((x) < 0 ? -(x) : (x))
 #define ARRAY_SIZE(a) (sizeof(a)/sizeof(*(a)))
+#define STRINGIFY(x) #x
 #define GLUE(x,y) x##y
 #define GLUE_(x,y) x##_##y