mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 22:22:17 +00:00
error message replacement
This commit is contained in:
parent
baf6d3ead4
commit
3ef6da8e5b
1 changed files with 2 additions and 1 deletions
3
parser.c
3
parser.c
|
@ -1579,7 +1579,8 @@ static bool parser_variable(parser_t *parser, ast_block *localblock)
|
|||
*/
|
||||
if (proto) {
|
||||
if (!ast_compare_type((ast_expression*)proto, (ast_expression*)fval)) {
|
||||
parseerror(parser, "prototype declared at %s:%i had a different type",
|
||||
parseerror(parser, "conflicting types for `%s`, previous declaration was here: %s:%i",
|
||||
proto->name,
|
||||
ast_ctx(proto).file, ast_ctx(proto).line);
|
||||
ast_function_delete(func);
|
||||
ast_value_delete(fval);
|
||||
|
|
Loading…
Reference in a new issue