Handle a `#if` directive
| 1227 | |
| 1228 | // Handle a `#if` directive |
| 1229 | static void HandleIfDirective(PreprocessorDirectiveContext* context) |
| 1230 | { |
| 1231 | // Parse a preprocessor expression. |
| 1232 | PreprocessorExpressionValue value = ParseAndEvaluateExpression(context); |
| 1233 | |
| 1234 | // Begin a preprocessor block, enabled based on the expression. |
| 1235 | BeginConditional(context, value != 0); |
| 1236 | } |
| 1237 | |
| 1238 | // Handle a `#ifdef` directive |
| 1239 | static void HandleIfDefDirective(PreprocessorDirectiveContext* context) |
nothing calls this directly
no test coverage detected