Fix parsing function macro invocations

If a function macro name is separated from the parentheses in
an macro invocation the substitution doesn't take place.
Fix this by handling comments.
This commit is contained in:
Michael Matz
2012-04-16 00:21:40 +02:00
parent 15f4ac2b1a
commit 4c0d70ab07
2 changed files with 22 additions and 3 deletions

View File

@ -288,6 +288,10 @@ comment
/* test function macro substitution when the function name is
substituted */
TEST2();
/* And again when the name and parenthes are separated by a
comment. */
TEST2 /* the comment */ ();
}