Stores checkpoints of nesting stacks when #if/#else is seen.
| 2613 | |
| 2614 | |
| 2615 | class _PreprocessorInfo(object): |
| 2616 | """Stores checkpoints of nesting stacks when #if/#else is seen.""" |
| 2617 | |
| 2618 | def __init__(self, stack_before_if): |
| 2619 | # The entire nesting stack before #if |
| 2620 | self.stack_before_if = stack_before_if |
| 2621 | |
| 2622 | # The entire nesting stack up to #else |
| 2623 | self.stack_before_else = [] |
| 2624 | |
| 2625 | # Whether we have already seen #else or #elif |
| 2626 | self.seen_else = False |
| 2627 | |
| 2628 | |
| 2629 | class NestingState(object): |