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:
@@ -316,7 +316,7 @@ Standard_Boolean LDOMBasicString::GetInteger (Standard_Integer& aResult) const
|
||||
return Standard_True;
|
||||
}
|
||||
|
||||
#ifdef DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
#ifndef WNT
|
||||
//=======================================================================
|
||||
// Debug Function for DBX: use "print -p <Variable> or pp <Variable>"
|
||||
|
@@ -232,7 +232,7 @@ const LDOM_BasicNode * LDOM_BasicElement::AddAttribute
|
||||
// Check attribute hash value against the current mask
|
||||
const unsigned int anAttrMaskValue = aHash & (8*sizeof(myAttributeMask) - 1);
|
||||
const unsigned long anAttributeMask = (1 << anAttrMaskValue);
|
||||
#ifdef DEBUG_MASK
|
||||
#ifdef OCCT_DEBUG_MASK
|
||||
anAttributeMask = 0xffffffff;
|
||||
#endif
|
||||
if ((myAttributeMask & anAttributeMask) == 0) {
|
||||
@@ -276,7 +276,7 @@ const LDOM_BasicNode * LDOM_BasicElement::RemoveAttribute
|
||||
LDOM_MemManager::Hash (aNameStr, (Standard_Integer)strlen(aNameStr));
|
||||
const unsigned int anAttrMaskValue = aHash & (8*sizeof(myAttributeMask) - 1);
|
||||
const unsigned long anAttributeMask = (1 << anAttrMaskValue);
|
||||
#ifdef DEBUG_MASK
|
||||
#ifdef OCCT_DEBUG_MASK
|
||||
anAttributeMask = 0xffffffff;
|
||||
#endif
|
||||
if ((myAttributeMask & anAttributeMask) == 0) {
|
||||
|
@@ -44,7 +44,7 @@ const LDOM_BasicNode * LDOM_BasicNode::GetSibling () const
|
||||
return mySibling;
|
||||
}
|
||||
|
||||
#ifdef DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
#ifndef WNT
|
||||
//=======================================================================
|
||||
// Debug Function for DBX: use "print -p <Variable> or pp <Variable>"
|
||||
|
@@ -234,7 +234,7 @@ LDOM_MemManager::LDOM_MemManager (const Standard_Integer aBlockSize)
|
||||
|
||||
LDOM_MemManager::~LDOM_MemManager ()
|
||||
{
|
||||
#ifdef LDOM_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
Standard_Integer aSomme = 0, aCount = 0;
|
||||
MemBlock * aBlock = myFirstBlock;
|
||||
//FILE * out = fopen ("/tmp/dump","w");
|
||||
|
@@ -373,7 +373,7 @@ LDOM_XmlReader::RecordType LDOM_XmlReader::ReadRecord
|
||||
myError = "Improper element tag termination";
|
||||
else {
|
||||
myPtr += 2;
|
||||
#ifdef DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
theData.Clear();
|
||||
theData << myElement->GetTagName();
|
||||
#endif
|
||||
@@ -386,7 +386,7 @@ LDOM_XmlReader::RecordType LDOM_XmlReader::ReadRecord
|
||||
return XML_UNKNOWN;
|
||||
}
|
||||
++ myPtr;
|
||||
#ifdef DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
theData.Clear();
|
||||
theData << myElement->GetTagName();
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user