mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-17 17:11:32 +00:00
Better diagnostic when "floor" cannot be found.
This commit is contained in:
parent
f19adcd1b3
commit
662612d66f
1 changed files with 4 additions and 1 deletions
5
parser.c
5
parser.c
|
@ -3541,7 +3541,10 @@ static ast_expression *parser_builtin_mod(parser_t *parser) {
|
|||
|
||||
if (!mod_floor) {
|
||||
if (!(mod_floor = parser_find_global(parser, "floor"))) {
|
||||
parseerror(parser, "internal error: no suitable definition found for `floor` (required for % and __builtin_mod)");
|
||||
parseerror(parser,
|
||||
"internal error: no suitable definition found for `floor`"
|
||||
"(required for `%%` operator and `__builtin_mod` intrinsic)"
|
||||
);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue