aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lemon/cppmagic.h
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>2001-02-27 20:34:09 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>2001-02-27 20:34:09 +0000
commitb864c8d80daa2ac2c3d8dd867c72f1d9341497f1 (patch)
tree338b7d2c8a6c1a1bda192d31a9cf47db27d0362e /tools/lemon/cppmagic.h
parented665a1b50f8355961b7b1dd8884c1624624a46b (diff)
Move the location of cppmagic.h, since the lemon-flex include files
require it. It makes more sense to either put cppmagic with lemon, or in yet another common directory. I'll just put it with lemon. svn path=/trunk/; revision=3083
Diffstat (limited to 'tools/lemon/cppmagic.h')
-rw-r--r--tools/lemon/cppmagic.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/lemon/cppmagic.h b/tools/lemon/cppmagic.h
new file mode 100644
index 0000000000..c3f448ec41
--- /dev/null
+++ b/tools/lemon/cppmagic.h
@@ -0,0 +1,14 @@
+/* $Id: cppmagic.h,v 1.1 2001/02/27 20:34:09 gram Exp $ */
+
+/**************************************** CPP definitions ***************/
+
+/* CPP magic: Concatenate two strings or macros that resolve to strings.
+ * Use CONCAT(), not _CONCAT() */
+#define _CONCAT(a,b) a ## b
+#define CONCAT(a,b) _CONCAT(a,b)
+
+/* CPP magic: Surround a string or a macro that resolves to a string with
+ * double quotes. */
+#define _STRINGIFY(a) # a
+#define STRINGIFY(a) _STRINGIFY(a)
+