base/asm-common.h: Add some general C preprocessor utilities.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 5 Nov 2016 21:28:22 +0000 (21:28 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 3 Apr 2017 08:59:53 +0000 (09:59 +0100)
base/asm-common.h

index e5e0f2f..77dd6a7 100644 (file)
 ///--------------------------------------------------------------------------
 /// General definitions.
 
+// Preprocessor hacks.
+#define STRINGY(x) _STRINGY(x, y)
+#define _STRINGY(x) #x
+#define GLUE(x, y) _GLUE(x, y)
+#define _GLUE(x, y) x##y
+#define _EMPTY
+
 // Some useful variables.
        .L$_subsec = 0