1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +03:00

0025418: Debug output to be limited to OCC development environment

Macros ending on "DEB" are replaced by OCCT_DEBUG across OCCT code; new macros described in documentation.
Macros starting with DEB are changed to start with "OCCT_DEBUG_".
Some code cleaned.
This commit is contained in:
abv
2014-10-28 12:41:04 +03:00
committed by bugmaster
parent a507ffd9d7
commit 0797d9d30a
700 changed files with 3932 additions and 4250 deletions

View File

@@ -290,7 +290,7 @@ Handle(Poly_Triangulation) Poly::ReadTriangulation(Standard_IStream& IS)
char line[100];
IS >> line;
if (strcmp(line,"Poly_Triangulation")) {
#ifdef POLY_DEB
#ifdef OCCT_DEBUG
cout << "Not a Triangulation in the file" << endl;
#endif
return Handle(Poly_Triangulation)();
@@ -356,7 +356,7 @@ Handle(Poly_Polygon3D) Poly::ReadPolygon3D(Standard_IStream& IS)
char line[100];
IS >> line;
if (strcmp(line,"Poly_Polygon3D")) {
#ifdef POLY_DEB
#ifdef OCCT_DEBUG
cout << "Not a Polygon3D in the file" << endl;
#endif
return Handle(Poly_Polygon3D)();
@@ -411,7 +411,7 @@ Handle(Poly_Polygon2D) Poly::ReadPolygon2D(Standard_IStream& IS)
char line[100];
IS >> line;
if (strcmp(line,"Poly_Polygon2D")) {
#ifdef POLY_DEB
#ifdef OCCT_DEBUG
cout << "Not a Polygon2D in the file" << endl;
#endif
return Handle(Poly_Polygon2D)();

View File

@@ -19,7 +19,7 @@
#include <gp_Dir.hxx>
#include <gp_Dir2d.hxx>
#ifdef _DEBUG
#ifdef OCCT_DEBUG
static Standard_Integer doDebug = 0;
#endif
@@ -66,7 +66,7 @@ void Poly_MakeLoops::AddLink(const Link& theLink)
Standard_Integer aInd = myMapLink.Add(theLink);
Link& aLink = const_cast<Link&>(myMapLink(aInd));
aLink.flags |= theLink.flags;
#ifdef _DEBUG
#ifdef OCCT_DEBUG
myHelper->OnAddLink (aInd, aLink);
#endif
}
@@ -89,7 +89,7 @@ void Poly_MakeLoops::ReplaceLink(const Link& theLink, const Link& theNewLink)
aLink = theNewLink;
// and now put there the final value of link
myMapLink.Substitute(aInd, aLink);
#ifdef _DEBUG
#ifdef OCCT_DEBUG
myHelper->OnAddLink (aInd, aLink);
#endif
}
@@ -111,7 +111,7 @@ Poly_MakeLoops::LinkFlag Poly_MakeLoops::SetLinkOrientation
Link& aLink = const_cast<Link&>(myMapLink(aInd));
aOri = (LinkFlag) (aLink.flags & LF_Both);
aLink.flags = theOrient;
#ifdef _DEBUG
#ifdef OCCT_DEBUG
myHelper->OnAddLink (aInd, aLink);
#endif
}
@@ -151,7 +151,7 @@ Standard_Integer Poly_MakeLoops::Perform()
myStartIndices.Add(-i);
}
#ifdef _DEBUG
#ifdef OCCT_DEBUG
if (doDebug)
showBoundaryBreaks();
#endif
@@ -174,7 +174,7 @@ Standard_Integer Poly_MakeLoops::Perform()
aTempAlloc->Reset();
NCollection_IndexedMap<Standard_Integer> aContour (100, aTempAlloc);
Standard_Integer aStartNumber = findContour (aIndexS, aContour, aTempAlloc, aTempAlloc1);
#ifdef _DEBUG
#ifdef OCCT_DEBUG
if (aStartNumber > 1)
if (doDebug)
{
@@ -221,7 +221,7 @@ Standard_Integer Poly_MakeLoops::Perform()
myStartIndices.Add(it.Key());
}
}
#ifdef _DEBUG
#ifdef OCCT_DEBUG
if (doDebug && nbLoopsOnPass2)
cout << "MakeLoops: " << nbLoopsOnPass2
<< " contours accepted on the second pass" << endl;
@@ -485,7 +485,7 @@ Standard_Boolean Poly_MakeLoops::canLinkBeTaken(Standard_Integer theIndexS) cons
//purpose :
//=======================================================================
#ifdef _DEBUG
#ifdef OCCT_DEBUG
void Poly_MakeLoops::showBoundaryBreaks() const
{
// collect nodes of boundary links

View File

@@ -227,7 +227,7 @@ protected:
aLink.Reverse();
return aLink;
}
#ifdef _DEBUG
#ifdef OCCT_DEBUG
void showBoundaryBreaks() const;
#endif