Stores checkpoints of nesting stacks when #if/#else is seen.
| 2881 | |
| 2882 | |
| 2883 | class _PreprocessorInfo(object): |
| 2884 | """Stores checkpoints of nesting stacks when #if/#else is seen.""" |
| 2885 | |
| 2886 | def __init__(self, stack_before_if): |
| 2887 | # The entire nesting stack before #if |
| 2888 | self.stack_before_if = stack_before_if |
| 2889 | |
| 2890 | # The entire nesting stack up to #else |
| 2891 | self.stack_before_else = [] |
| 2892 | |
| 2893 | # Whether we have already seen #else or #elif |
| 2894 | self.seen_else = False |
| 2895 | |
| 2896 | |
| 2897 | class NestingState(object): |