From 5ff00133575853cee911dcbed9610e470aa832de Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Fri, 2 Nov 2012 22:51:26 +0100 Subject: [PATCH] error on more than 8 params for now since more need special treatment --- parser.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.2