Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Preprocessor doesn't handle one case of definition substitution properly #1659
Author Name: Topa Tota
Original Assignee: Wilson Snyder (@wsnyder)
If you run the preprocessor on this code
Output will be
It should give an error since there is no opening parenthesis after the definition name "test". However, what happens is that everything between the definition name and opening parenthesis gets prepended into the first argument.
This issue can mess up the code without the user detecting any errors. For example, user forgets to pass arguments to the definition name and a few lines later has a function call with same number of arguments.