PP: Rationalize return values of MacroExpand.

This results in better error recovery, including fewer
crashes on badly formed PP input.
This commit is contained in:
John Kessenich 2018-07-02 13:47:31 -06:00
parent 9cc81de096
commit 802c62bca4
8 changed files with 78 additions and 32 deletions

8
Test/preprocessor.bad_arg.vert Executable file
View file

@ -0,0 +1,8 @@
#define M(a) a
int M(aou
= 2) // Okay, one argument, split across newline
;
// end of file during an argument
#define EXP2(a, b)
EXP2(((((1,2,3,4))), );