From: mdw Date: Fri, 18 Mar 2005 09:58:46 +0000 (+0000) Subject: Add a couple more standard macros. Fix the header. X-Git-Tag: 2.0.4~32 X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/commitdiff_plain/16139d88ffbc4d6c5c9e214bb7f373600670dd92 Add a couple more standard macros. Fix the header. --- diff --git a/macros.h b/macros.h index 6af623f..4dd6901 100644 --- a/macros.h +++ b/macros.h @@ -1,5 +1,8 @@ /* -*-c-*- - Handy macrosose]] + * + * $Id$ + * + * Handy macros * * (c) 2003 Straylight/Edgeware */ @@ -35,6 +38,12 @@ #define N(v) (sizeof(v)/sizeof(*v)) +#define MLIB__STR(x) #x +#define STR(x) MLIB__STR(x) + +#define MLIB__GLUE(x, y) x##y +#define GLUE(x, y) MLIB__GLUE(x, y) + /*----- That's all, folks -------------------------------------------------*/ #ifdef __cplusplus