Skip to content

Commit

Permalink
0033390: Coding - Debug version of OCCT does not compile
Browse files Browse the repository at this point in the history
Deleted code for OCCT_DEBUG was returned and added under macros OCCT_DEBUG
  • Loading branch information
akaftase committed May 22, 2023
1 parent 92e0a76 commit 8748042
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Poly/Poly_MakeLoops.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ Standard_Integer Poly_MakeLoops::Perform()
#ifdef OCCT_DEBUG
if (doDebug)
showBoundaryBreaks();
Standard_Integer aNbLoopsOnPass2 = 0;
#endif

Standard_Integer aResult = 0;
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 8748042

Please sign in to comment.