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

@@ -328,7 +328,7 @@ Standard_Boolean BRepBlend_AppFuncRoot::SearchPoint(Blend_AppFunction& Func,
rsnld.Perform(Func, XInit, X1, X2);
if (!rsnld.IsDone()) {
# ifdef DEB
# ifdef BREPBLEND_DEB
cout << "AppFunc : RNLD Not done en t = " << Param << endl;
# endif
return Standard_False;
@@ -340,7 +340,7 @@ Standard_Boolean BRepBlend_AppFuncRoot::SearchPoint(Blend_AppFunction& Func,
// (4) Insertion of the point if the calculation seems long.
if ((!Trouve)&&(rsnld.NbIterations()>3)) {
#ifdef DEB
#ifdef BREPBLEND_DEB
cout << "Evaluation in t = " << Param << "given" << endl;
rsnld.Dump(cout);
#endif

View File

@@ -910,7 +910,7 @@ Standard_Boolean BRepBlend_SurfRstConstRad::Section
norm = ncrossns.Magnitude();
if (norm < Eps) {
norm = 1; // Not enough, but it is not necessary to stop
#if DEB
#if BREPBLEND_DEB
cout << " SurfRstConstRad : Singular Surface " << endl;
#endif
}

View File

@@ -922,7 +922,7 @@ TColStd_Array1OfReal& DWeigths)
norm = ncrossns.Magnitude();
if (norm < Eps) {
norm = 1; // Not enough, but it is not necessary to stop
#if DEB
#if BREPBLEND_DEB
cout << " SurfRstEvolRad : Surface single " << endl;
#endif
}

View File

@@ -704,7 +704,7 @@ void BRepBlend_SurfRstLineBuilder::InternalPerform(Blend_SurfRstFunction& Func,
}
else{
// Failed reframing. Leave with PointsConfondus
#if DEB
#if BREPBLEND_DEB
cout<<"SurfRstLineBuilder : failed reframing"<<endl;
#endif
State = Blend_SamePoints;
@@ -759,7 +759,7 @@ void BRepBlend_SurfRstLineBuilder::InternalPerform(Blend_SurfRstFunction& Func,
Arrive = Standard_True;
if (line->NbPoints()>=2) {
// Indicate that one stops during the processing
#if DEB
#if BREPBLEND_DEB
cout<<"SurfRstLineBuilder : No advancement in the processing"<<endl;
#endif
}
@@ -865,7 +865,7 @@ void BRepBlend_SurfRstLineBuilder::InternalPerform(Blend_SurfRstFunction& Func,
case Blend_SamePoints :
{
// Stop
#if DEB
#if BREPBLEND_DEB
cout << "SurfRstLineBuilder Points mixed in the processing" << endl;
#endif
previousP.ParametersOnS(U,V);
@@ -938,7 +938,7 @@ Standard_Boolean BRepBlend_SurfRstLineBuilder::Recadre(Blend_SurfCurvFuncInv&
rsnld.Perform(FinvC,Solinv,infb,supb);
if (!rsnld.IsDone()) {
#if DEB
#if BREPBLEND_DEB
cout << "SurfRstLineBuilder : RSNLD not done "<< endl << endl;
#endif
}
@@ -977,7 +977,7 @@ Standard_Boolean BRepBlend_SurfRstLineBuilder::Recadre(Blend_SurfCurvFuncInv&
rsnld.Perform(FinvC,Solinv,infb,supb);
if (!rsnld.IsDone()) {
#if DEB
#if BREPBLEND_DEB
cout << "SurfRstLineBuilder : RSNLD not done "<< endl << endl;
#endif
}
@@ -1038,7 +1038,7 @@ Standard_Boolean BRepBlend_SurfRstLineBuilder::Recadre(Blend_SurfRstFunction&
math_FunctionSetRoot rsnld(Finv,toler,30);
rsnld.Perform(Finv,Solinv,infb,supb);
if (!rsnld.IsDone()) {
#if DEB
#if BREPBLEND_DEB
cout << "SurfRstLineBuilder :RSNLD not done "<< endl;
#endif
return Standard_False;
@@ -1122,7 +1122,7 @@ Standard_Boolean BRepBlend_SurfRstLineBuilder::Recadre(Blend_SurfPointFuncInv&
math_FunctionSetRoot rsnld(FinvP,toler,30);
rsnld.Perform(FinvP,Solinv,infb,supb);
if (!rsnld.IsDone()) {
#if DEB
#if BREPBLEND_DEB
cout << "SurfRstLineBuilder :RSNLD not done "<< endl;
#endif
return Standard_False;