Merge pull request #427 from Y-Less/Branch_ignored_directives

Ignore `#if`d out unknown directives.
This commit is contained in:
Zeex 2019-06-29 20:29:56 +06:00 committed by GitHub
commit b2eca9203b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1590,8 +1590,10 @@ static int command(void)
} /* if */
break;
default:
if (!SKIPPING) {
error(31); /* unknown compiler directive */
ret=SKIPPING ? CMD_CONDFALSE : CMD_NONE; /* process as normal line */
ret=CMD_NONE; /* process as normal line */
}
} /* switch */
return ret;
}