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:
parent
9cc81de096
commit
802c62bca4
8 changed files with 78 additions and 32 deletions
8
Test/preprocessor.bad_arg.vert
Executable file
8
Test/preprocessor.bad_arg.vert
Executable 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))), );
|
||||
Loading…
Add table
Add a link
Reference in a new issue