diff options
author | Erik Faye-Lund <[email protected]> | 2013-12-17 16:37:33 +0100 |
---|---|---|
committer | Carl Worth <[email protected]> | 2014-01-02 14:22:58 -0800 |
commit | eb212c5a302f0122a13b36dfdf07e91f951ae2e7 (patch) | |
tree | 82582edde6697d40e7496d1e994fea21cfdf6027 /SConstruct | |
parent | 6005e9cb283214cd57038c7c5e7758ba72ec6ac2 (diff) |
glcpp: error on multiple #else/#elif directives
The preprocessor currently accepts multiple else/elif-groups
per if-section. The GLSL-preprocessor is defined by the C++
specification, which defines the following parse-rule:
if-section:
if-group elif-groups(opt) else-group(opt) endif-line
This clearly only allows a single else-group, that has to come
after any elif-groups.
So let's modify the code to follow the specification. Add test
to prevent regressions.
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Carl Worth <[email protected]>
Cc: 10.0 <[email protected]>
Diffstat (limited to 'SConstruct')
0 files changed, 0 insertions, 0 deletions