From: uz Date: Wed, 30 Dec 2009 11:20:09 +0000 (+0000) Subject: Ignore unknown preprocessor directives in an #if group that is excluded. X-Git-Tag: V2.13.1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=41f77572043112aceb6d035cddbf30e8b7f663a6;p=cc65 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 --- 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 (); } }