mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +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:
@@ -38,7 +38,7 @@ Handle(Standard_Transient) BinDrivers::Factory(const Standard_GUID& theGUID)
|
||||
{
|
||||
if (theGUID == BinStorageDriver)
|
||||
{
|
||||
#ifdef BINDRIVERS_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "BinDrivers : Storage Plugin" << endl;
|
||||
#endif
|
||||
static Handle(BinDrivers_DocumentStorageDriver) model_sd =
|
||||
@@ -48,7 +48,7 @@ Handle(Standard_Transient) BinDrivers::Factory(const Standard_GUID& theGUID)
|
||||
|
||||
if (theGUID == BinRetrievalDriver)
|
||||
{
|
||||
#ifdef BINDRIVERS_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "BinDrivers : Retrieval Plugin" << endl;
|
||||
#endif
|
||||
static Handle(BinDrivers_DocumentRetrievalDriver) model_rd =
|
||||
|
@@ -48,12 +48,6 @@ void BinDrivers_DocumentStorageDriver::WriteShapeSection
|
||||
(BinLDrivers_DocumentSection& theSection,
|
||||
Standard_OStream& theOS)
|
||||
{
|
||||
|
||||
#if defined(_DEBUG) || defined(DEB)
|
||||
TCollection_ExtendedString aMethStr ("BinDrivers_DocumentStorageDriver, ");
|
||||
#else
|
||||
TCollection_ExtendedString aMethStr;
|
||||
#endif
|
||||
const Standard_Size aShapesSectionOffset = (Standard_Size) theOS.tellp();
|
||||
|
||||
Handle(BinMNaming_NamedShapeDriver) aNamedShapeDriver;
|
||||
@@ -65,7 +59,7 @@ void BinDrivers_DocumentStorageDriver::WriteShapeSection
|
||||
TCollection_ExtendedString anErrorStr ("Error: ");
|
||||
Handle(Standard_Failure) aFailure = Standard_Failure::Caught();
|
||||
TCollection_ExtendedString aStr =
|
||||
anErrorStr + aMethStr + "Shape Section :";
|
||||
anErrorStr + "BinDrivers_DocumentStorageDriver, Shape Section :";
|
||||
WriteMessage (aStr + aFailure->GetMessageString());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user