avoid spurious error messages about missing #endif

This commit is contained in:
ceriel 1989-03-01 13:39:50 +00:00
parent 992dc3eb65
commit 847c27663b

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