Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | glcpp: Fix support for nested #ifdef and nested #ifndef | Carl Worth | 2010-07-20 | 1 | -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. |