]> OCCT Git - occt.git/commitdiff
0033390: Coding - Debug version of OCCT does not compile
authorakaftasev <akaftasev@opencascade.com>
Mon, 22 May 2023 11:00:32 +0000 (12:00 +0100)
committervglukhik <vglukhik@opencascade.com>
Fri, 21 Jul 2023 15:33:48 +0000 (16:33 +0100)
Deleted code for OCCT_DEBUG was returned and added under macros OCCT_DEBUG

src/Poly/Poly_MakeLoops.cxx

index 72450641c642f9ba9bd7a6c6f1729b2c416e7730..8bf6c3e2821efdfba9e06551021da483a4add290 100644 (file)
@@ -154,6 +154,7 @@ Standard_Integer Poly_MakeLoops::Perform()
 #ifdef OCCT_DEBUG
   if (doDebug)
     showBoundaryBreaks();
+  Standard_Integer aNbLoopsOnPass2 = 0;
 #endif
 
   Standard_Integer aResult = 0;
@@ -191,6 +192,10 @@ Standard_Integer Poly_MakeLoops::Perform()
       if (aStartNumber <= aContour.Extent())
       {
         // there is a closed loop in the contour
+#ifdef OCCT_DEBUG
+        if (aPassNum == 1)
+          aNbLoopsOnPass2++;
+#endif
         acceptContour (aContour, aStartNumber);
       }
       if (aStartNumber > 1)
@@ -219,8 +224,8 @@ Standard_Integer Poly_MakeLoops::Perform()
     }
   }
 #ifdef OCCT_DEBUG
-  if (doDebug && nbLoopsOnPass2)
-    std::cout << "MakeLoops: " << nbLoopsOnPass2
+  if (doDebug && aNbLoopsOnPass2)
+    std::cout << "MakeLoops: " << aNbLoopsOnPass2
       << " contours accepted on the second pass" << std::endl;
 #endif