mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-19 07:51:08 +00:00
[qfcc] Treat all identifiers as undefined
If ID gets to the preprocessor parser in expressions, the ID is not defined because if it was defined, it would have been expanded. Thus, all IDs are 0.
This commit is contained in:
parent
4214b90de3
commit
80c9132199
1 changed files with 2 additions and 2 deletions
|
@ -287,8 +287,8 @@ arg : '(' <macro> { $$ = rua_macro_append ($<macro>0, yyvsp, scanner); }
|
|||
| TOKEN { $$ = rua_macro_append ($<macro>0, yyvsp, scanner); }
|
||||
;
|
||||
|
||||
id : ID { $$ = 0; }
|
||||
| IDp args ')' { $$ = 0; }
|
||||
id : ID { $$ = new_long_expr (0, false); }
|
||||
| IDp args ')' { $$ = new_long_expr (0, false); }
|
||||
;
|
||||
|
||||
defined
|
||||
|
|
Loading…
Reference in a new issue