From: Dale Weiler Date: Fri, 8 Mar 2013 09:23:35 +0000 (+0000) Subject: Better diagnostic when "floor" cannot be found. X-Git-Tag: before-library~96 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=662612d66f7f56a2e67ef2e11847ca670dab7bac;p=xonotic%2Fgmqcc.git Better diagnostic when "floor" cannot be found. --- diff --git a/parser.c b/parser.c index 5340f1a..970837f 100644 --- a/parser.c +++ b/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; } }