From: Martin Mares Date: Thu, 29 Jan 2004 21:18:21 +0000 (+0000) Subject: Added STRINGIFY macro. X-Git-Tag: holmes-import~1124 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=7093c3275e649ae60935fe07bb6b44398b3ca4c0;p=libucw.git Added STRINGIFY macro. --- diff --git a/lib/lib.h b/lib/lib.h index 658feabf..923afca5 100644 --- 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