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:
@@ -4721,14 +4721,14 @@ static Standard_Boolean IsValid(const TopTools_ListOfShape& theArgs,
|
||||
TCollection_AsciiString checkValid = check.Value();
|
||||
Standard_Boolean ToCheck = Standard_True;
|
||||
if (!checkValid.IsEmpty()) {
|
||||
#ifdef VIEWERTEST_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout <<"DONT_SWITCH_IS_VALID positionnee a :"<<checkValid.ToCString()<<"\n";
|
||||
#endif
|
||||
if ( checkValid=="true" || checkValid=="TRUE" ) {
|
||||
ToCheck= Standard_False;
|
||||
}
|
||||
} else {
|
||||
#ifdef VIEWERTEST_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout <<"DONT_SWITCH_IS_VALID non positionne"<<"\n";
|
||||
#endif
|
||||
}
|
||||
@@ -4886,7 +4886,7 @@ void ViewerTest::Factory(Draw_Interpretor& theDI)
|
||||
ViewerTest::Commands(theDI);
|
||||
ViewerTest::AviCommands(theDI);
|
||||
|
||||
#ifdef DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
theDI << "Draw Plugin : OCC V2d & V3d commands are loaded" << "\n";
|
||||
#endif
|
||||
}
|
||||
|
@@ -1657,7 +1657,7 @@ static int VLenghtDimension(Draw_Interpretor& di, Standard_Integer argc, const c
|
||||
TopExp::Vertices(anEdgeFromA, aVertex1, aVertex2);
|
||||
gp_Pnt A=BRep_Tool::Pnt(aVertex1);
|
||||
|
||||
#ifdef DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
gp_Pnt C = BRep_Tool::Pnt(aVertex2);
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user