PP: don't give errors on some tokens under #if 0 (or similar).
Fixes #1295. Tokens that are accepted by any version of HLSL or GLSL should be allowed when #ifdef'd off, such that errors are not reported.
This commit is contained in:
parent
56e8056582
commit
e7e081bda9
5 changed files with 71 additions and 31 deletions
14
Test/baseResults/cppRelaxSkipTokensErrors.vert.out
Executable file
14
Test/baseResults/cppRelaxSkipTokensErrors.vert.out
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
cppRelaxSkipTokensErrors.vert
|
||||
Shader version: 110
|
||||
0:? Sequence
|
||||
0:? Linker Objects
|
||||
|
||||
|
||||
Linked vertex stage:
|
||||
|
||||
ERROR: Linking vertex stage: Missing entry point: Each stage requires one entry point
|
||||
|
||||
Shader version: 110
|
||||
0:? Sequence
|
||||
0:? Linker Objects
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue