mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-04-13 05:21:37 +00:00
Set name for is_varargs too.
This commit is contained in:
parent
823b053e60
commit
d5690074e1
1 changed files with 1 additions and 0 deletions
1
parser.c
1
parser.c
|
@ -4669,6 +4669,7 @@ static ast_value *parse_parameter_list(parser_t *parser, ast_value *var)
|
|||
}
|
||||
if (parser->tok == TOKEN_IDENT) {
|
||||
argcounter = util_strdup(parser_tokval(parser));
|
||||
ast_value_set_name(param, argcounter);
|
||||
if (!parser_next(parser) || parser->tok != ')') {
|
||||
parseerror(parser, "`...` must be the last parameter of a variadic function declaration");
|
||||
goto on_error;
|
||||
|
|
Loading…
Reference in a new issue