]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
error on more than 8 params for now since more need special treatment
authorWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 2 Nov 2012 21:51:26 +0000 (22:51 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 2 Nov 2012 21:51:26 +0000 (22:51 +0100)
parser.c

index a49deb5e398b8b25496c076d4008805e8c3cc3d2..d3ca471cbf7ee11c0815f3bb4d2c8d9b14102862 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -415,6 +415,9 @@ static ast_value *parse_type(parser_t *parser, int basetype, bool *isfunc)
             goto on_error;
     }
 
+    if (params.p_count > 8)
+        parseerror(parser, "more than 8 parameters are currently not supported");
+
     var = ast_value_new(ctx, "<unnamed>", vtype);
     if (!var)
         goto on_error;