From 41f77572043112aceb6d035cddbf30e8b7f663a6 Mon Sep 17 00:00:00 2001 From: uz Date: Wed, 30 Dec 2009 11:20:09 +0000 Subject: [PATCH] Ignore unknown preprocessor directives in an #if group that is excluded. git-svn-id: svn://svn.cc65.org/cc65/trunk@4534 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/preproc.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/cc65/preproc.c b/src/cc65/preproc.c index 1b13018bc..ffbd60138 100644 --- a/src/cc65/preproc.c +++ b/src/cc65/preproc.c @@ -1361,13 +1361,17 @@ void Preprocess (void) DoWarning (); } } else { - PPError ("Preprocessor directive expected"); + if (!Skip) { + PPError ("Preprocessor directive expected"); + } ClearLine (); } break; - default: - PPError ("Preprocessor directive expected"); + default: + if (!Skip) { + PPError ("Preprocessor directive expected"); + } ClearLine (); } } -- 2.39.5