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:
@@ -231,7 +231,7 @@ Standard_Boolean IGESCAFControl_Reader::Transfer (Handle(TDocStd_Document) &doc)
|
||||
else {
|
||||
Handle(IGESGraph_Color) color = Handle(IGESGraph_Color)::DownCast ( ent->Color() );
|
||||
if ( color.IsNull() ) {
|
||||
#ifdef IGESCAFCONTROL_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Error: Unrecognized type of color definition" << endl;
|
||||
#endif
|
||||
IsColor = Standard_False;
|
||||
@@ -574,7 +574,7 @@ Standard_Boolean IGESCAFControl_Reader::ReadLayers (Handle(TDocStd_Document)& /*
|
||||
case IGESData_DefOne : {
|
||||
TCollection_ExtendedString aLayerName ( ent->Level() );
|
||||
LTool->SetLayer( L, aLayerName );
|
||||
#ifdef DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
// cout << "Added layer " << aLayerName << endl;
|
||||
#endif
|
||||
break;
|
||||
@@ -585,7 +585,7 @@ Standard_Boolean IGESCAFControl_Reader::ReadLayers (Handle(TDocStd_Document)& /*
|
||||
for ( Standard_Integer ilev = 1; ilev <= layerNb; ilev++ ) {
|
||||
TCollection_ExtendedString aLayerName ( aLevelList->LevelNumber(ilev) );
|
||||
LTool->SetLayer( L, aLayerName );
|
||||
#ifdef DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
// cout << "Added layer " << aLayerName << endl;
|
||||
#endif
|
||||
}
|
||||
|
@@ -369,7 +369,7 @@ static void AttachLayer (const Handle(Transfer_FinderProcess) &FP,
|
||||
if ( FP->FindTypedTransient ( mapper, STANDARD_TYPE(IGESData_IGESEntity), Igesent ) ) {
|
||||
Igesent->InitLevel( 0, localIntName );
|
||||
}
|
||||
#ifdef IGESCAFCONTROL_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
else cout << "Warning: Can't find entity for shape in mapper" << endl;
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user