Stores checkpoints of nesting stacks when #if/#else is seen.
| 3199 | |
| 3200 | |
| 3201 | class _PreprocessorInfo: |
| 3202 | """Stores checkpoints of nesting stacks when #if/#else is seen.""" |
| 3203 | |
| 3204 | def __init__(self, stack_before_if): |
| 3205 | # The entire nesting stack before #if |
| 3206 | self.stack_before_if = stack_before_if |
| 3207 | |
| 3208 | # The entire nesting stack up to #else |
| 3209 | self.stack_before_else = [] |
| 3210 | |
| 3211 | # Whether we have already seen #else or #elif |
| 3212 | self.seen_else = False |
| 3213 | |
| 3214 | |
| 3215 | class NestingState: |