PP: Rationalize return values of MacroExpand.
authorJohn Kessenich <cepheus@frii.com>
Mon, 2 Jul 2018 19:47:31 +0000 (13:47 -0600)
committerJohn Kessenich <cepheus@frii.com>
Mon, 2 Jul 2018 19:47:31 +0000 (13:47 -0600)
commit802c62bca40105ef7c13bb49f74d6386c9cd89fd
treee56e2fa553ab98c9e256ba570e8825fd09962b98
parent9cc81de09603fa3279d5e5fcbc5a87e9d5dab347
PP: Rationalize return values of MacroExpand.

This results in better error recovery, including fewer
crashes on badly formed PP input.
Test/baseResults/cppBad2.vert.out
Test/baseResults/preprocessor.bad_arg.vert.err [new file with mode: 0644]
Test/baseResults/preprocessor.bad_arg.vert.out [new file with mode: 0644]
Test/preprocessor.bad_arg.vert [new file with mode: 0755]
glslang/MachineIndependent/preprocessor/Pp.cpp
glslang/MachineIndependent/preprocessor/PpContext.h
glslang/MachineIndependent/preprocessor/PpScanner.cpp
gtests/Pp.FromFile.cpp [changed mode: 0644->0755]