]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - tests/pmacros.qc
Match C's preprocessor semantics for token pasting with '##'.
[xonotic/gmqcc.git] / tests / pmacros.qc
index 1ecee8c3a673094771981f6a3f1a3fd95ebd9007..9bac53983cfd94803270d63b36f1ead0e5d9990c 100644 (file)
@@ -26,9 +26,8 @@
 
 #   define ALPHA(SEL) ALPHA_##SEL
 
-#   define ABC ALPHA(a)##ALPHA(b)##ALPHA(c)
+#   define ABC ALPHA(a)ALPHA(b)ALPHA(c)
 
-    void(string, ...) print = #1;
     void() main = {
         if (ABC == "abc")
             print("ABC\n");