Added unit test for parentheses inside a macro call.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 08 Apr 2009 23:46:14 -0400
changeset 739 dba3c975f467
parent 738 023189c285f6
child 740 13c0707a2e3f
Added unit test for parentheses inside a macro call.
unit_tests/preprocessor/output/macro-paren-stacking
unit_tests/preprocessor/output/macro-paren-stacking.correct
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/unit_tests/preprocessor/output/macro-paren-stacking	Wed Apr 08 23:46:14 2009 -0400
@@ -0,0 +1,3 @@
+/* Should give you "RIGHT" instead of an error. */
+#define a(a,b) b
+a((1+1), RIGHT)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/unit_tests/preprocessor/output/macro-paren-stacking.correct	Wed Apr 08 23:46:14 2009 -0400
@@ -0,0 +1,1 @@
+RIGHT
\ No newline at end of file