[qfcc] Handle macros in preprocessor directors

I had forgotten that ids in preprocessor directives had a different
token type.
This commit is contained in:
Bill Currie 2023-10-27 17:27:02 +09:00
parent 733d242552
commit 4214b90de3

View file

@ -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) {