Add a couple more standard macros. Fix the header.
authormdw <mdw>
Fri, 18 Mar 2005 09:58:46 +0000 (09:58 +0000)
committermdw <mdw>
Fri, 18 Mar 2005 09:58:46 +0000 (09:58 +0000)
macros.h

index 6af623f..4dd6901 100644 (file)
--- a/macros.h
+++ b/macros.h
@@ -1,5 +1,8 @@
 /* -*-c-*-
- Handy macrosose]]
+ *
+ * $Id$
+ *
+ * Handy macros
  *
  * (c) 2003 Straylight/Edgeware
  */
 
 #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