chiark / gitweb /
Don't include trailing zero in the name of a gensym.
[mLib] / macros.h
index b8ea4dfbb118215e1a449450a8e545322c5d4fdb..4dd6901fa0d3626f8c7cfdbaeeaaa184137bc1a3 100644 (file)
--- a/macros.h
+++ b/macros.h
@@ -1,5 +1,8 @@
 /* -*-c-*-
- Handy macrosose]]
+ *
+ * $Id$
+ *
+ * Handy macros
  *
  * (c) 2003 Straylight/Edgeware
  */
  * MA 02111-1307, USA.
  */
 
-/*----- Revision history --------------------------------------------------* 
- *
- * $Log: macros.h,v $
- * Revision 1.1  2003/12/13 20:37:59  mdw
- * Add adns support in background resolver.
- *
- */
-
 #ifndef MLIB_MACROS_H
 #define MLIB_MACROS_H
 
 
 #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