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:
@@ -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
|
||||
|
||||
4
Test/baseResults/preprocessor.bad_arg.vert.err
Normal file
4
Test/baseResults/preprocessor.bad_arg.vert.err
Normal file
@@ -0,0 +1,4 @@
|
||||
ERROR: 0:8: 'macro expansion' : End of input in macro EXP2
|
||||
ERROR: 1 compilation errors. No code generated.
|
||||
|
||||
|
||||
0
Test/baseResults/preprocessor.bad_arg.vert.out
Normal file
0
Test/baseResults/preprocessor.bad_arg.vert.out
Normal file
Reference in New Issue
Block a user