Stores checkpoints of nesting stacks when #if/#else is seen.
| 1479 | |
| 1480 | |
| 1481 | class _PreprocessorInfo(object): |
| 1482 | """Stores checkpoints of nesting stacks when #if/#else is seen.""" |
| 1483 | |
| 1484 | def __init__(self, stack_before_if): |
| 1485 | # The entire nesting stack before #if |
| 1486 | self.stack_before_if = stack_before_if |
| 1487 | |
| 1488 | # The entire nesting stack up to #else |
| 1489 | self.stack_before_else = [] |
| 1490 | |
| 1491 | # Whether we have already seen #else or #elif |
| 1492 | self.seen_else = False |
| 1493 | |
| 1494 | |
| 1495 | class _NestingState(object): |