]> git.sur5r.net Git - cc65/commitdiff
Ignore unknown preprocessor directives in an #if group that is excluded. V2.13.1
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 30 Dec 2009 11:20:09 +0000 (11:20 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 30 Dec 2009 11:20:09 +0000 (11:20 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@4534 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/cc65/preproc.c

index 1b13018bc3a623e5cf4fde505edb38df5f4f8f53..ffbd60138456dca40a63e86e7d7ac329d77bd130 100644 (file)
@@ -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 ();
                }
            }