avoid spurious error messages about missing #endif
authorceriel <none@none>
Wed, 1 Mar 1989 13:39:50 +0000 (13:39 +0000)
committerceriel <none@none>
Wed, 1 Mar 1989 13:39:50 +0000 (13:39 +0000)
util/cpp/domacro.c

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