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

0025266: Debug statements in the source are getting flushed on to the console

Output to cout activated previously in Debug mode by #ifdef DEB is suppressed by using macro <PACKAGE>_DEB instead of DEB
This commit is contained in:
dbv
2014-10-08 19:00:20 +04:00
committed by abv
parent 7aa1b65c2a
commit 63c629aa3a
370 changed files with 1634 additions and 1639 deletions

View File

@@ -1191,7 +1191,7 @@ static Standard_Real HeightMax(const TopoDS_Shape& theSbase, // shape initial
//#else
// Standard_Real par = Max( Max( abs(c[1] - c[0]), abs(c[3] - c[2]) ), abs(c[5] - c[4]) );
//#endif
#ifdef DEB
#ifdef BREPFEAT_DEB
cout << "Height = > " << par << endl;
#endif
return par;

View File

@@ -399,8 +399,11 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
if (!ProfileOK) {
#ifdef DEB
cout << "Not computable" << endl;
if (trc) cout << "Face profile not computable" << endl;
if (trc)
{
cout << "Not computable" << endl;
cout << "Face profile not computable" << endl;
}
#endif
myStatusError = BRepFeat_NoFaceProf;
NotDone();
@@ -414,7 +417,7 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
Sliding = Propagate(SliList, Prof, myFirstPnt, myLastPnt, falseside);
// Control if there is everything required to have the material at the proper side
if(falseside == Standard_False) {
#ifdef DEB
#ifdef BREPFEAT_DEB
cout << "Verify plane and wire orientation" << endl;
#endif
myStatusError = BRepFeat_FalseSide;
@@ -733,8 +736,11 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
if (!ProfileOK) {
#ifdef DEB
cout << "Not computable" << endl;
if (trc) cout << " Face profile not computable" << endl;
if (trc)
{
cout << "Not computable" << endl;
cout << " Face profile not computable" << endl;
}
#endif
myStatusError = BRepFeat_NoFaceProf;
NotDone();
@@ -748,7 +754,7 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
Propagate(SliList, Prof, myFirstPnt, myLastPnt, falseside);
// Control if there is everything required to have the material at the proper side
if(falseside == Standard_False) {
#ifdef DEB
#ifdef BREPFEAT_DEB
cout << "Verify plane and wire orientation" << endl;
#endif
myStatusError = BRepFeat_FalseSide;
@@ -894,8 +900,11 @@ void BRepFeat_MakeLinearForm::Perform()
if(!myGluedF.IsEmpty() && !mySUntil.IsNull()) {
#ifdef DEB
cout << "The case is not computable" << endl;
if (trc) cout << " Glued faces not empty and Until shape not null" << endl;
if (trc)
{
cout << "The case is not computable" << endl;
cout << " Glued faces not empty and Until shape not null" << endl;
}
#endif
myStatusError = BRepFeat_InvShape;
NotDone();
@@ -1218,7 +1227,7 @@ static void SetGluedFaces(const TopTools_DataMapOfShapeListOfShape& theSlmap,
for (it.Initialize(ledg); it.More(); it.Next()) {
const TopTools_ListOfShape& gfac = thePrism.Shapes(it.Value());
if (gfac.Extent() != 1) {
#ifdef DEB
#ifdef BREPFEAT_DEB
cout << "Pb SetGluedFace" << endl;
#endif
}

View File

@@ -526,8 +526,11 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
if (!ProfileOK) {
#ifdef DEB
cout << "Not computable" << endl;
if (trc) cout << "Face profile not computable" << endl;
if (trc)
{
cout << "Not computable" << endl;
cout << "Face profile not computable" << endl;
}
#endif
myStatusError = BRepFeat_NoFaceProf;
NotDone();
@@ -541,7 +544,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
Sliding = Propagate(SliList, Prof, myFirstPnt, myLastPnt, falseside);
// Control if there is everything required to have the material at the proper side
if(falseside == Standard_False) {
#ifdef DEB
#ifdef BREPFEAT_DEB
cout << " Verify plane and wire orientation" << endl;
#endif
myStatusError = BRepFeat_FalseSide;
@@ -939,7 +942,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
if(!BRepAlgo::IsValid(NewBndFace)) {
#ifdef DEB
#ifdef BREPFEAT_DEB
cout << "Invalid new bounding face" << endl;
#endif
myStatusError = BRepFeat_InvShape;
@@ -959,8 +962,11 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
if (!ProfileOK) {
#ifdef DEB
cout << "Not computable" << endl;
if (trc) cout << " Face profile not computable" << endl;
if (trc)
{
cout << "Not computable" << endl;
cout << " Face profile not computable" << endl;
}
#endif
myStatusError = BRepFeat_NoFaceProf;
NotDone();
@@ -974,7 +980,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
Propagate(SliList, Prof, myFirstPnt, myLastPnt, falseside);
// Control if there is everything required to have the material at the proper side
if(falseside == Standard_False) {
#ifdef DEB
#ifdef BREPFEAT_DEB
cout << " Verify plane and wire orientation" << endl;
#endif
myStatusError = BRepFeat_FalseSide;
@@ -1279,8 +1285,11 @@ void BRepFeat_MakeRevolutionForm::Perform()
if(!myGluedF.IsEmpty() && !mySUntil.IsNull()) {
#ifdef DEB
cout << "The case is not computable" << endl;
if (trc) cout << " Glued faces not empty and Until shape not null" << endl;
if (trc)
{
cout << "The case is not computable" << endl;
cout << " Glued faces not empty and Until shape not null" << endl;
}
#endif
myStatusError = BRepFeat_InvShape;
NotDone();
@@ -1760,7 +1769,7 @@ static void SetGluedFaces(const TopTools_DataMapOfShapeListOfShape& theSlmap,
for (it.Initialize(ledg); it.More(); it.Next()) {
const TopTools_ListOfShape& gfac = thePrism.Shapes(it.Value());
if (gfac.Extent() != 1) {
#ifdef DEB
#ifdef BREPFEAT_DEB
cout << "Pb SetGluedFace" << endl;
#endif
}

View File

@@ -195,7 +195,7 @@ void BRepFeat_RibSlot::LFPerform()
(!myFuse && ope != LocOpe_CUT) ||
(!Collage)) {
theOpe = 2;
#ifdef DEB
#ifdef BREPFEAT_DEB
cout << "Passage to topological operations" << endl;
#endif
}
@@ -216,7 +216,7 @@ void BRepFeat_RibSlot::LFPerform()
}
else {
theOpe = 2;
#ifdef DEB
#ifdef BREPFEAT_DEB
cout << "Passage to topologic operation" << endl;
#endif
}