From 8f27b8abdb21e5a67ea694ddc856cb45e5bcfdf5 Mon Sep 17 00:00:00 2001 From: Stephen Heumann Date: Sun, 20 Feb 2022 20:53:37 -0600 Subject: [PATCH] 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. --- Scanner.pas | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Scanner.pas b/Scanner.pas index a51770e..4540637 100644 --- a/Scanner.pas +++ b/Scanner.pas @@ -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,