From: Wolfgang (Blub) Bumiller Date: Fri, 2 Nov 2012 21:51:26 +0000 (+0100) Subject: error on more than 8 params for now since more need special treatment X-Git-Tag: 0.1~47 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5ff00133575853cee911dcbed9610e470aa832de;p=xonotic%2Fgmqcc.git error on more than 8 params for now since more need special treatment --- diff --git a/parser.c b/parser.c index a49deb5..d3ca471 100644 --- 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, "", vtype); if (!var) goto on_error;