mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +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:
@@ -133,7 +133,7 @@ void DPrsStd::Factory(Draw_Interpretor& theDI)
|
||||
DDataStd::AllCommands(theDI);
|
||||
DPrsStd::AllCommands(theDI);
|
||||
DDocStd::AllCommands(theDI);
|
||||
#ifdef DEB
|
||||
#ifdef DPRSSTD_DEB
|
||||
cout << "Draw Plugin : All DF commands are loaded" << endl;
|
||||
#endif
|
||||
}
|
||||
|
@@ -174,7 +174,7 @@ static Standard_Integer DPrsStd_AISSet (Draw_Interpretor& di,
|
||||
if (!DDF::FindLabel(D->GetData(),arg[2],L)) return 1;
|
||||
Standard_GUID guid;
|
||||
TCollection_ExtendedString str = arg[3];
|
||||
#ifdef DEB
|
||||
#ifdef DPRSSTD_DEB
|
||||
cout << "Inputed parameter > " << str << endl;
|
||||
#endif
|
||||
if ( str == "A" ) //axis
|
||||
@@ -195,7 +195,7 @@ static Standard_Integer DPrsStd_AISSet (Draw_Interpretor& di,
|
||||
// guid = TSketchStd_Edge::GetID(); //"b3aac90a-5b78-11d1-8940-080009dc3333"
|
||||
|
||||
Handle(TPrsStd_AISPresentation) prs= TPrsStd_AISPresentation::Set(L, guid);
|
||||
#ifdef DEB
|
||||
#ifdef DPRSSTD_DEB
|
||||
cout << "Driver GUID = ";
|
||||
prs->GetDriverGUID().ShallowDump(cout);
|
||||
cout << "\n";
|
||||
@@ -240,7 +240,7 @@ static Standard_Integer DPrsStd_AISDriver (Draw_Interpretor& di,
|
||||
}
|
||||
else {
|
||||
TCollection_ExtendedString str = arg[3];
|
||||
#ifdef DEB
|
||||
#ifdef DPRSSTD_DEB
|
||||
cout << "Inputed parameter > " << str << endl;
|
||||
#endif
|
||||
if ( str == "A" ) //axis
|
||||
|
Reference in New Issue
Block a user