]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Better diagnostic when "floor" cannot be found.
authorDale Weiler <killfieldengine@gmail.com>
Fri, 8 Mar 2013 09:23:35 +0000 (09:23 +0000)
committerDale Weiler <killfieldengine@gmail.com>
Fri, 8 Mar 2013 09:23:35 +0000 (09:23 +0000)
parser.c

index 5340f1a79a095ddce36e75195130f9128a23e17f..970837ffdcab15b7f4cb4f78cd9515db781739ed 100644 (file)
--- 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;
         }
     }