From 16139d88ffbc4d6c5c9e214bb7f373600670dd92 Mon Sep 17 00:00:00 2001 Message-Id: <16139d88ffbc4d6c5c9e214bb7f373600670dd92.1714826977.git.mdw@distorted.org.uk> From: Mark Wooding Date: Fri, 18 Mar 2005 09:58:46 +0000 Subject: [PATCH] Add a couple more standard macros. Fix the header. Organization: Straylight/Edgeware From: mdw --- macros.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 -- [mdw]