Returns the current preprocessor state, as a single #if condition.
(self)
| 59 | return str(self.line_number).rjust(4) + ": " + self.condition() |
| 60 | |
| 61 | def condition(self) -> str: |
| 62 | """ |
| 63 | Returns the current preprocessor state, as a single #if condition. |
| 64 | """ |
| 65 | return " && ".join(condition for token, condition in self.stack) |
| 66 | |
| 67 | def fail(self, msg: str) -> NoReturn: |
| 68 | raise ParseError(msg, filename=self.filename, lineno=self.line_number) |
no test coverage detected