Stores checkpoints of nesting stacks when #if/#else is seen.
| 1904 | |
| 1905 | |
| 1906 | class _PreprocessorInfo(object): |
| 1907 | """Stores checkpoints of nesting stacks when #if/#else is seen.""" |
| 1908 | |
| 1909 | def __init__(self, stack_before_if): |
| 1910 | # The entire nesting stack before #if |
| 1911 | self.stack_before_if = stack_before_if |
| 1912 | |
| 1913 | # The entire nesting stack up to #else |
| 1914 | self.stack_before_else = [] |
| 1915 | |
| 1916 | # Whether we have already seen #else or #elif |
| 1917 | self.seen_else = False |
| 1918 | |
| 1919 | |
| 1920 | class _NestingState(object): |