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:
@@ -14,7 +14,7 @@
|
||||
|
||||
//-- IntWalk_IWalking_2.gxx
|
||||
|
||||
#ifndef DEB
|
||||
#ifndef OCCT_DEBUG
|
||||
#define No_Standard_RangeError
|
||||
#define No_Standard_OutOfRange
|
||||
#endif
|
||||
@@ -677,7 +677,7 @@ void IntWalk_IWalking::TestArretCadre
|
||||
}
|
||||
Line->SetTangentVector(previousd3d,j-1);
|
||||
}
|
||||
#ifdef INTWALK_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
else {
|
||||
cout<<" IntWalk_IWalking_2.gxx : bizarrerie 30 10 97 "<<endl;
|
||||
}
|
||||
|
@@ -12,7 +12,7 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
#ifndef DEB
|
||||
#ifndef OCCT_DEBUG
|
||||
#define No_Standard_RangeError
|
||||
#define No_Standard_OutOfRange
|
||||
#endif
|
||||
|
@@ -1103,9 +1103,8 @@ void IntWalk_PWalking::Perform(const TColStd_Array1OfReal& ParDep,
|
||||
if(Arrive==Standard_False && Status==IntWalk_ArretSurPoint)
|
||||
{
|
||||
Arrive=Standard_True;
|
||||
#ifdef DEB
|
||||
cout << "Compile with option DEB : if problems with intersection : ";
|
||||
cout << "IntWalk_PWalking_1.gxx (lbr le 1erdec98)"<<endl;
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "IntWalk_PWalking_1.gxx: Problems with intersection"<<endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -1472,9 +1471,8 @@ Standard_Boolean IntWalk_PWalking::ExtendLineInCommonZone(const IntImp_ConstIsop
|
||||
nbIterWithoutAppend++;
|
||||
|
||||
if((nbIterWithoutAppend > 20) || (nbEqualPoints > 20)) {
|
||||
#ifdef DEB
|
||||
cout<<"Compile with option DEB:";
|
||||
cout<<"Infinite loop has detected. Stop iterations (IntWalk_PWalking_1.gxx)" << endl;
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<"Infinite loop detected. Stop iterations (IntWalk_PWalking_1.gxx)" << endl;
|
||||
#endif
|
||||
bStop = Standard_True;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user