]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - tests/ppindirectexpand.qc
Implement support for indirect macro expansions in the preprocessor. This closes #36
[xonotic/gmqcc.git] / tests / ppindirectexpand.qc
diff --git a/tests/ppindirectexpand.qc b/tests/ppindirectexpand.qc
new file mode 100644 (file)
index 0000000..09333f9
--- /dev/null
@@ -0,0 +1,6 @@
+#define STR1(x) #x
+#define STR2(x) STR1(x)
+#define THE_ANSWER 42
+#define THE_ANSWER_STR STR2(THE_ANSWER)
+
+THE_ANSWER_STR