mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-19 07:51:08 +00:00
[qfcc] Handle macros in preprocessor directors
I had forgotten that ids in preprocessor directives had a different token type.
This commit is contained in:
parent
733d242552
commit
4214b90de3
1 changed files with 1 additions and 1 deletions
|
@ -1363,7 +1363,7 @@ qc_process (rua_extra_t *extra, int token, rua_tok_t *tok, yyscan_t scanner)
|
|||
|
||||
if (extra->expand || !extra->preprocessor) {
|
||||
symbol_t *sym = 0;
|
||||
if (token == -rua_id) {
|
||||
if (token == -rua_id || (extra->preprocessor && token == PRE_ID)) {
|
||||
sym = symtab_lookup (extra->macro_tab, tok->text);
|
||||
}
|
||||
if (sym) {
|
||||
|
|
Loading…
Reference in a new issue