intialize a preprocessor context, using the given sink for errros
| 1730 | |
| 1731 | // intialize a preprocessor context, using the given sink for errros |
| 1732 | static void InitializePreprocessor( |
| 1733 | Preprocessor* preprocessor, |
| 1734 | DiagnosticSink* sink) |
| 1735 | { |
| 1736 | preprocessor->sink = sink; |
| 1737 | preprocessor->includeHandler = NULL; |
| 1738 | preprocessor->endOfFileToken.Type = TokenType::EndOfFile; |
| 1739 | preprocessor->endOfFileToken.flags = TokenFlag::AtStartOfLine; |
| 1740 | } |
| 1741 | |
| 1742 | // clean up after an environment |
| 1743 | PreprocessorEnvironment::~PreprocessorEnvironment() |