error on more than 8 params for now since more need special treatment

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-11-02 22:51:26 +01:00
parent bf256abd66
commit 5ff0013357

View file

@ -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;