summaryrefslogtreecommitdiffstats
path: root/src/glsl/glcpp/tests/067-nested-ifdef-ifndef.c
Commit message (Collapse)AuthorAgeFilesLines
* glcpp: Fix support for nested #ifdef and nested #ifndefCarl Worth2010-07-201-0/+40
Previously, if the outer #ifdef/#ifndef evaluated to false, the inner directive would not be parsed correctly, (the identifier as the subject of the #ifdef/#ifndef would inadvertently be skipped along with the other content correctly being skipped). We fix this by setting the lexing_if state in each case here. We also add a new test to the test suite to ensure that this case is tested.