Browse Source

* don't check for endif if error

peter 27 years ago
parent
commit
78990962b5
1 changed files with 6 additions and 2 deletions
  1. 6 2
      compiler/scanner.pas

+ 6 - 2
compiler/scanner.pas

@@ -274,7 +274,8 @@ implementation
       begin
       begin
         if not invalid then
         if not invalid then
           begin
           begin
-             checkpreprocstack;
+             if status.errorcount=0 then
+              checkpreprocstack;
            { close file, but only if we are the first compile }
            { close file, but only if we are the first compile }
            { probably not necessary anymore with invalid flag PM }
            { probably not necessary anymore with invalid flag PM }
              if not current_module^.in_second_compile then
              if not current_module^.in_second_compile then
@@ -1518,7 +1519,10 @@ begin
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.64  1998-10-21 20:16:05  peter
+  Revision 1.65  1998-11-03 11:35:02  peter
+    * don't check for endif if error
+
+  Revision 1.64  1998/10/21 20:16:05  peter
     * beter line info for conditionals
     * beter line info for conditionals
 
 
   Revision 1.63  1998/10/16 14:20:57  daniel
   Revision 1.63  1998/10/16 14:20:57  daniel