diff options
Diffstat (limited to 'preprocess.c')
| -rw-r--r-- | preprocess.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/preprocess.c b/preprocess.c index 066a77f..5b7c180 100644 --- a/preprocess.c +++ b/preprocess.c @@ -945,6 +945,9 @@ void process_pp_directives(Preprocessor* pp) { } else if ((next_tok = process_define_directive(pp, tok)) != NULL) { tok = next_tok; continue; + } else { + fatal_error("%s:%d: unknown preprocessor directive (%s)", tok->loc.filename, tok->loc.line, + token_stringify(tok + 1)); } } else if (skip_pp_tokens(pp)) { make_token_whitespace(tok); |
