mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-19 15:30:50 +00:00
Allow (void) qc-style functions.
This commit is contained in:
parent
d75c35ba30
commit
547f361bd3
1 changed files with 6 additions and 0 deletions
|
@ -618,6 +618,12 @@ function_params
|
|||
qc_func_params
|
||||
: '(' ')' { $$ = 0; }
|
||||
| '(' ps qc_var_list ')' { $$ = check_params ($3); }
|
||||
| '(' ps TYPE ')'
|
||||
{
|
||||
if ($3 != &type_void)
|
||||
PARSE_ERROR;
|
||||
$$ = 0;
|
||||
}
|
||||
;
|
||||
|
||||
ps : ;
|
||||
|
|
Loading…
Reference in a new issue