From 8289c94e69682c33296978280889764afb35f00e Mon Sep 17 00:00:00 2001 From: acqn Date: Tue, 26 Jul 2022 14:28:27 +0800 Subject: [PATCH] Fixed skipped lines consist of a leading # followed by any non-directive PP-token sequence. --- src/cc65/preproc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cc65/preproc.c b/src/cc65/preproc.c index 107541994..96bb0bf1c 100644 --- a/src/cc65/preproc.c +++ b/src/cc65/preproc.c @@ -1296,7 +1296,9 @@ void Preprocess (void) continue; } if (!IsSym (Directive)) { - PPError ("Preprocessor directive expected"); + if (!Skip) { + PPError ("Preprocessor directive expected"); + } ClearLine (); } else { switch (FindPPToken (Directive)) {