1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +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

@@ -123,7 +123,7 @@ ShapeExtend_ComplexCurve::ShapeExtend_ComplexCurve()
ok &= Curve (i)->Value (Curve(i)->LastParameter()).IsEqual
(Curve (i + 1)->Value (Curve(i + 1)->FirstParameter()), Preci);
}
#ifdef SHAPEEXTEND_DEB
#ifdef OCCT_DEBUG
if (!ok) cout << "Warning: ShapeExtend_ComplexCurve: not connected in 3d" << endl;
#endif
return ok;

View File

@@ -79,7 +79,7 @@ Standard_Boolean ShapeExtend_CompositeSurface::Init (const Handle(TColGeom_HArra
if ( ! SetUJointValues ( UJoints ) || ! SetVJointValues ( VJoints ) ) {
ok = Standard_False;
ComputeJointValues ( ShapeExtend_Natural );
#ifdef SHAPEEXTEND_DEB
#ifdef OCCT_DEBUG
cout << "Warning: ShapeExtend_CompositeSurface::Init: bad joint values" << endl;
#endif
}
@@ -826,7 +826,7 @@ Standard_Boolean ShapeExtend_CompositeSurface::CheckConnectivity (const Standard
else if ( maxdist2 > Prec*Prec ) ok = Standard_False;
}
#ifdef SHAPEEXTEND_DEB
#ifdef OCCT_DEBUG
if ( ! ok ) cout << "Warning: ShapeExtend_CompositeSurface: not connected in 3d" << endl;
#endif
return ok;

View File

@@ -35,7 +35,7 @@ void ShapeExtend_MsgRegistrator::Send(const Handle(Standard_Transient)& object,
const Message_Gravity)
{
if (object.IsNull()) {
#ifdef SHAPEEXTEND_DEB
#ifdef OCCT_DEBUG
cout << "Warning: ShapeExtend_MsgRegistrator::Send: null object" << endl;
#endif
return;
@@ -61,7 +61,7 @@ void ShapeExtend_MsgRegistrator::Send(const Handle(Standard_Transient)& object,
const Message_Gravity)
{
if (shape.IsNull()) {
#ifdef SHAPEEXTEND_DEB
#ifdef OCCT_DEBUG
cout << "Warning: ShapeExtend_MsgRegistrator::Send: null shape" << endl;
#endif
return;