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

View File

@@ -1,7 +1,6 @@
cppBad2.vert
ERROR: 0:3: 'macro expansion' : End of input in macro b
ERROR: 0:3: '' : compilation terminated
ERROR: 2 compilation errors. No code generated.
ERROR: 1 compilation errors. No code generated.
Shader version: 100

View File

@@ -0,0 +1,4 @@
ERROR: 0:8: 'macro expansion' : End of input in macro EXP2
ERROR: 1 compilation errors. No code generated.