mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 06:10:56 +00:00
fix segs on ondeclared identifiers
This commit is contained in:
parent
eb71edb5d4
commit
ccc00b0608
1 changed files with 4 additions and 0 deletions
|
@ -407,6 +407,10 @@ expr
|
|||
$$ = new_expr ();
|
||||
$$->type = ex_def;
|
||||
$$->e.def = PR_GetDef (NULL, $1, pr_scope, false);
|
||||
if (!$$->e.def) {
|
||||
error (0, "%s undeclared", $1);
|
||||
$$->e.def = &def_float;
|
||||
}
|
||||
}
|
||||
| const { $$ = $1; }
|
||||
| '(' expr ')' { $$ = $2; $$->paren = 1; }
|
||||
|
|
Loading…
Reference in a new issue