mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-30 15:41:12 +00:00
a '(void)' parameter list does not mean 1 parameter of type void, but empty... xonotic needs this
This commit is contained in:
parent
b59401db1b
commit
f2887f1208
1 changed files with 3 additions and 0 deletions
3
parser.c
3
parser.c
|
@ -3151,6 +3151,9 @@ static ast_value *parse_parameter_list(parser_t *parser, ast_value *var)
|
|||
}
|
||||
}
|
||||
|
||||
if (vec_size(params) == 1 && params[0]->expression.vtype == TYPE_VOID)
|
||||
vec_free(params);
|
||||
|
||||
/* sanity check */
|
||||
if (vec_size(params) > 8 && opts_standard == COMPILER_QCC)
|
||||
(void)!parsewarning(parser, WARN_EXTENSIONS, "more than 8 parameters are not supported by this standard");
|
||||
|
|
Loading…
Reference in a new issue