mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +00:00
allow constant expressions to be used for builtin numbers
This commit is contained in:
parent
cca1558688
commit
802aacfaf4
1 changed files with 3 additions and 1 deletions
|
@ -452,8 +452,10 @@ var_initializer
|
|||
init_elements ($<def>0, $4);
|
||||
current_init = 0;
|
||||
}
|
||||
| '=' '#' const
|
||||
| '=' '#' expr
|
||||
{
|
||||
if ($3->type == ex_def && $3->e.def->constant)
|
||||
$3 = constant_expr ($3);
|
||||
build_builtin_function ($<def>0, $3);
|
||||
}
|
||||
| '=' opt_state_expr { $$ = $<def>0; }
|
||||
|
|
Loading…
Reference in a new issue