avoid spurious error messages about missing #endif

This commit is contained in:
ceriel 1989-03-01 13:39:50 +00:00
parent ea8f852fc5
commit 04a3b0a092

View File

@ -365,8 +365,9 @@ do_endif()
{ {
PushBack(); PushBack();
skipline(); skipline();
if (nestlevel-- <= svnestlevel[nestcount]) if (nestlevel <= svnestlevel[nestcount])
error("#endif without corresponding #if"); error("#endif without corresponding #if");
else nestlevel--;
} }
PRIVATE PRIVATE