diff options
| -rw-r--r-- | preprocess.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/preprocess.c b/preprocess.c index 9f98e40..5374c53 100644 --- a/preprocess.c +++ b/preprocess.c @@ -680,7 +680,8 @@ PpToken* process_define_directive(Preprocessor* pp, PpToken* tok) { if (tok2->kind == PpTokenKind_punctuator && string_equals_cstr(&tok2->raw, ")")) { ++tok2; } else { - fatal_error("#define: invalid function-like macro syntax"); + fatal_error("%s:%d: invalid function-like macro syntax (#define %.*s)", macro_name->loc.filename, + macro_name->loc.line, macro_name->raw.len, macro_name->raw.data); } tok3 = find_next_newline(tok2); if (tok3) { |
