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:
@@ -139,7 +139,7 @@ Standard_Boolean TDF_CopyLabel::ExternalReferences(const TDF_Label& L,
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
#ifdef DEB
|
||||
#ifdef TDF_DEB
|
||||
static void PrintEntry(const TDF_Label& label, const Standard_Boolean allLevels)
|
||||
{
|
||||
TCollection_AsciiString entry;
|
||||
@@ -168,7 +168,7 @@ void TDF_CopyLabel::Perform()
|
||||
!TDF_Tool::IsSelfContained(mySL)) return;
|
||||
#endif
|
||||
else {
|
||||
#ifdef DEB
|
||||
#ifdef TDF_DEB
|
||||
cout << "THE SAME Data" <<endl;
|
||||
#endif
|
||||
}
|
||||
@@ -187,7 +187,7 @@ void TDF_CopyLabel::Perform()
|
||||
for (TDF_MapIteratorOfAttributeMap attMItr(myMapOfExt);attMItr.More(); attMItr.Next()) {
|
||||
Handle(TDF_Attribute) att = attMItr.Key();
|
||||
myRT->SetRelocation(att, att);
|
||||
#ifdef DEB
|
||||
#ifdef TDF_DEB
|
||||
PrintEntry(att->Label(), Standard_True);
|
||||
#endif
|
||||
}
|
||||
|
@@ -108,7 +108,7 @@ void TDF_Delta::BeforeOrAfterApply(const Standard_Boolean before) const
|
||||
}
|
||||
|
||||
if (!noDeadLock) {
|
||||
#ifdef DEB
|
||||
#ifdef TDF_DEB
|
||||
if (before) cout<<"Before"; else cout<<"After";
|
||||
cout<<"Undo(): dead lock between these attributes:"<<endl;
|
||||
for (itr.Initialize(ADlist); itr.More(); itr.Next()) {
|
||||
|
@@ -46,7 +46,7 @@ void TDF_DeltaOnForget::Apply()
|
||||
// Undo = Resume.
|
||||
Label().ResumeAttribute(Attribute());
|
||||
Attribute()->mySavedTransaction = 0;
|
||||
#ifdef DEB
|
||||
#ifdef TDF_DEB
|
||||
cout<<"Resume attribute"<<endl;
|
||||
#endif
|
||||
}
|
||||
|
@@ -45,7 +45,7 @@ void TDF_DeltaOnResume::Apply()
|
||||
{
|
||||
// Undo = Forget.
|
||||
Label().ForgetAttribute (Attribute());
|
||||
#ifdef DEB
|
||||
#ifdef TDF_DEB
|
||||
cout<<"Forget attribute"<<endl;
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user