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

@@ -91,7 +91,7 @@
#define MinSeg ((Standard_Integer*)Indices)[7]
#define MaxSeg ((Standard_Integer*)Indices)[8]
#define SegFlags ((Standard_Integer*)Indices)[9]
#ifdef DEB
#ifdef OCCT_DEBUG
static Standard_Integer ERROR = Standard_False;
#endif
//=======================================================================
@@ -473,7 +473,7 @@ HideByOneTriangle (const Standard_Address Coordinates,
o[npi] = n1 == -1;
m[npi] = Multiple;
}
#ifdef HLRALGO_DEB
#ifdef OCCT_DEBUG
else if (ERROR) {
cout << " error : HLRAlgo_PolyData::HideByOneTriangle " << endl;
cout << " ( more than 2 points )." << endl;
@@ -618,7 +618,7 @@ HideByOneTriangle (const Standard_Address Coordinates,
o[npi] = n1 == -1;
m[npi] = Multiple;
}
#ifdef HLRALGO_DEB
#ifdef OCCT_DEBUG
else if (ERROR) {
cout << " error : HLRAlgo_PolyData::HideByOneTriangle " << endl;
cout << " ( more than 2 points )." << endl;
@@ -763,7 +763,7 @@ HideByOneTriangle (const Standard_Address Coordinates,
o[npi] = n1 == -1;
m[npi] = Multiple;
}
#ifdef HLRALGO_DEB
#ifdef OCCT_DEBUG
else if (ERROR) {
cout << " error : HLRAlgo_PolyData::HideByOneTriangle " << endl;
cout << " ( more than 2 points )." << endl;

View File

@@ -109,7 +109,7 @@
#define Nod4PCu1 ((Standard_Real*)Nod4RValues)[ 8]
#define Nod4PCu2 ((Standard_Real*)Nod4RValues)[ 9]
#define Nod4Scal ((Standard_Real*)Nod4RValues)[10]
#ifdef DEB
#ifdef OCCT_DEBUG
static Standard_Integer TRACE = Standard_False;
static Standard_Integer ERROR = Standard_False;
#endif
@@ -425,7 +425,7 @@ HLRAlgo_PolyInternalData::AddNode (const Standard_Address Nod1RValues,
Nod3NrmX = 1;
Nod3NrmY = 0;
Nod3NrmZ = 0;
#ifdef HLRALGO_DEB
#ifdef OCCT_DEBUG
if (ERROR)
cout << "HLRAlgo_PolyInternalData::AddNode" << endl;
#endif
@@ -515,7 +515,7 @@ HLRAlgo_PolyInternalData::UpdateLinks (const Standard_Integer ip1,
}
if (find == 0) {
myNbPISeg--;
#ifdef HLRALGO_DEB
#ifdef OCCT_DEBUG
if (ERROR) {
cout << "HLRAlgo_PolyInternalData::UpdateLinks : segment error";
cout << endl;
@@ -624,7 +624,7 @@ HLRAlgo_PolyInternalData::UpdateLinks (const Standard_Integer ip1,
Nod3NdSg = myNbPISeg;
Nod4NdSg = myNbPISeg;
}
#ifdef HLRALGO_DEB
#ifdef OCCT_DEBUG
else if (ERROR) {
cout << "HLRAlgo_PolyInternalData::UpdateLinks : triangle error ";
cout << endl;
@@ -797,7 +797,7 @@ IncTData (Standard_Address& TData1,
Standard_Address& TData2)
{
if (myNbTData >= myMxTData) {
#ifdef DEB
#ifdef OCCT_DEBUG
if (TRACE)
cout << "HLRAlgo_PolyInternalData::IncTData : " << myMxTData << endl;
#endif
@@ -846,7 +846,7 @@ IncPISeg (Standard_Address& PISeg1,
Standard_Address& PISeg2)
{
if (myNbPISeg >= myMxPISeg) {
#ifdef DEB
#ifdef OCCT_DEBUG
if (TRACE)
cout << "HLRAlgo_PolyInternalData::IncPISeg : " << myMxPISeg << endl;
#endif
@@ -896,7 +896,7 @@ IncPINod (Standard_Address& PINod1,
Standard_Address& PINod2)
{
if (myNbPINod >= myMxPINod) {
#ifdef DEB
#ifdef OCCT_DEBUG
if (TRACE)
cout << "HLRAlgo_PolyInternalData::IncPINod : " << myMxPINod << endl;
#endif