Stores checkpoints of nesting stacks when #if/#else is seen.
| 2895 | |
| 2896 | |
| 2897 | class _PreprocessorInfo(object): |
| 2898 | """Stores checkpoints of nesting stacks when #if/#else is seen.""" |
| 2899 | |
| 2900 | def __init__(self, stack_before_if): |
| 2901 | # The entire nesting stack before #if |
| 2902 | self.stack_before_if = stack_before_if |
| 2903 | |
| 2904 | # The entire nesting stack up to #else |
| 2905 | self.stack_before_else = [] |
| 2906 | |
| 2907 | # Whether we have already seen #else or #elif |
| 2908 | self.seen_else = False |
| 2909 | |
| 2910 | |
| 2911 | class NestingState(object): |