[qfcc] Skip converting preprocessor in macros

This fixes a segfault when parsing code resulting from expanded macros
with numbers in them.
This commit is contained in:
Bill Currie 2023-10-24 21:51:57 +09:00
parent dd17e45052
commit 2849ed06cd

View file

@ -1138,7 +1138,9 @@ preproc_token (rua_extra_t *extra, int token, rua_tok_t *tok, yyscan_t *scanner)
case rua_error:
break;
case rua_number:
if (!extra->recording) {
token = parse_number (tok, scanner);
}
break;
case rua_vector:
token = parse_vector (tok, scanner);