Stores checkpoints of nesting stacks when #if/#else is seen.
| 3259 | |
| 3260 | |
| 3261 | class _PreprocessorInfo: |
| 3262 | """Stores checkpoints of nesting stacks when #if/#else is seen.""" |
| 3263 | |
| 3264 | def __init__(self, stack_before_if): |
| 3265 | # The entire nesting stack before #if |
| 3266 | self.stack_before_if = stack_before_if |
| 3267 | |
| 3268 | # The entire nesting stack up to #else |
| 3269 | self.stack_before_else = [] |
| 3270 | |
| 3271 | # Whether we have already seen #else or #elif |
| 3272 | self.seen_else = False |
| 3273 | |
| 3274 | |
| 3275 | class NestingState: |
no outgoing calls
no test coverage detected
searching dependent graphs…