mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-25 03:51:26 +00:00
error on more than 8 params for now since more need special treatment
This commit is contained in:
parent
bf256abd66
commit
5ff0013357
1 changed files with 3 additions and 0 deletions
3
parser.c
3
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;
|
||||
|
|
Loading…
Reference in a new issue