From 39d6cb7840f7fbc7d2fbec563586ee1bec78de31 Mon Sep 17 00:00:00 2001 From: Steve Dudenhoeffer Date: Fri, 16 Feb 2007 18:49:21 +0000 Subject: [PATCH] Fixed #error ignoring #if blocks --- compiler/libpc300/sc2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/libpc300/sc2.c b/compiler/libpc300/sc2.c index 41fae03f..d49fc710 100755 --- a/compiler/libpc300/sc2.c +++ b/compiler/libpc300/sc2.c @@ -1344,7 +1344,8 @@ static int command(void) case tpERROR: while (*lptr<=' ' && *lptr!='\0') lptr++; - error(111,lptr); /* user error */ + if (!SKIPPING) + error(111,lptr); /* user error */ break; default: error(31); /* unknown compiler directive */