mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-08-06 13:37:22 +08: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 @@ Standard_Boolean ShapeProcess::RegisterOperator (const Standard_CString name,
|
||||
{
|
||||
if ( dic.IsNull() ) dic = new ShapeProcess_DictionaryOfOperator;
|
||||
if ( dic->HasItem ( name, Standard_True ) ) {
|
||||
#ifdef SHAPEPROCESS_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: operator with name " << name << " is already registered!" << endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
@@ -57,7 +57,7 @@ Standard_Boolean ShapeProcess::FindOperator (const Standard_CString name,
|
||||
{
|
||||
if ( dic.IsNull() ) dic = new ShapeProcess_DictionaryOfOperator;
|
||||
if ( ! dic->HasItem ( name, Standard_True ) ) {
|
||||
#ifdef SHAPEPROCESS_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Error: no operator with name " << name << " registered!" << endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
@@ -79,7 +79,7 @@ Standard_Boolean ShapeProcess::Perform (const Handle(ShapeProcess_Context)& cont
|
||||
// get description of the sequence
|
||||
TCollection_AsciiString sequence;
|
||||
if ( ! context->GetString ( "exec.op", sequence ) ) {
|
||||
#ifdef SHAPEPROCESS_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Error: ShapeProcess_Performer::Perform: sequence not defined for " << seq << endl;
|
||||
#endif
|
||||
context->UnSetScope();
|
||||
|
||||
Reference in New Issue
Block a user