Print any ## tokens in #pragma expand output.

Note that ## will not currently be recognized as a token in some contexts, leading to it not being printed.
This commit is contained in:
Stephen Heumann 2022-02-20 20:53:37 -06:00
parent bf7a6fa5db
commit 8f27b8abdb
1 changed files with 5 additions and 1 deletions

View File

@ -1017,9 +1017,13 @@ case token.kind of
uasterisk: write('*');
poundpoundop: if not token.isDigraph then
write('##')
else
write('%:%:');
macroParm: write('$', token.pnum:1);
poundpoundop,
parameteroper,
castoper,
eolsy,