Skip to content

Commit b2eca92

Browse files
authored
Merge pull request #427 from Y-Less/Branch_ignored_directives
Ignore `#if`d out unknown directives.
2 parents 6356afb + 267c8f8 commit b2eca92

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/compiler/sc2.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1590,8 +1590,10 @@ static int command(void)
15901590
} /* if */
15911591
break;
15921592
default:
1593-
error(31); /* unknown compiler directive */
1594-
ret=SKIPPING ? CMD_CONDFALSE : CMD_NONE; /* process as normal line */
1593+
if (!SKIPPING) {
1594+
error(31); /* unknown compiler directive */
1595+
ret=CMD_NONE; /* process as normal line */
1596+
}
15951597
} /* switch */
15961598
return ret;
15971599
}

0 commit comments

Comments
 (0)