1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +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:
abv
2014-10-28 12:41:04 +03:00
committed by bugmaster
parent a507ffd9d7
commit 0797d9d30a
700 changed files with 3932 additions and 4250 deletions

View File

@@ -35,7 +35,7 @@ package TestTopOpeTools
--
-- All of the Trace controls in top.ope. kernel
-- are enclosed by the C conditional compilation statements :
-- #ifdef DEB ... #endif
-- #ifdef OCCT_DEBUG ... #endif
--
-- The "Traced" packages of topological operation kernel are :
-- - TopBuild

View File

@@ -20,7 +20,7 @@
#include <Draw_Appli.hxx>
#include <TopOpeBRepTool_define.hxx>
#ifdef DEB
#ifdef OCCT_DEBUG
TestTopOpeTools_Trace theTrace(100,"trace");
TestTopOpeTools_Trace theContext(100,"context");
@@ -119,7 +119,7 @@ Standard_IMPORT void TopOpeBRepDS_SetcontextNOPFI(const Standard_Boolean);
Standard_IMPORT void TopOpeBRepDS_SetcontextMKTONREG(const Standard_Boolean);
#endif
#ifdef DEB
#ifdef OCCT_DEBUG
//----------------------------------------------------------------------------
static Standard_Integer InitTraceTopOpeKernel (TestTopOpeTools_Trace& T)
//----------------------------------------------------------------------------
@@ -191,7 +191,7 @@ static Standard_Integer InitTraceTopOpeKernel (TestTopOpeTools_Trace& T)
return 0;
}
#endif
#ifdef DEB
#ifdef OCCT_DEBUG
//----------------------------------------------------------------------------
Standard_Integer InitContextTopOpeKernel (TestTopOpeTools_Trace& T)
//----------------------------------------------------------------------------
@@ -273,14 +273,14 @@ Standard_EXPORT Standard_Integer TestTopOpeTools_SetFlags
//=========================================================================
#ifdef DEB
#ifdef OCCT_DEBUG
Standard_Integer TestTopOpeTools_SetTrace(Draw_Interpretor&, Standard_Integer n ,const char** a)
#else
Standard_Integer TestTopOpeTools_SetTrace(Draw_Interpretor&, Standard_Integer,const char**)
#endif
{
Standard_Integer ok = Standard_True;
#ifdef DEB
#ifdef OCCT_DEBUG
InitTraceTopOpeKernel(theTrace);
Standard_Integer mute = 0; if (!strcasecmp(a[0],"trcmute")) mute = 1;
ok = TestTopOpeTools_SetFlags(theTrace,mute,n,a);
@@ -292,7 +292,7 @@ Standard_Integer TestTopOpeTools_SetTrace(Draw_Interpretor&, Standard_Integer,co
// a1 = flag (for example tbs) <a2> = value, if omitted flag becomes True
//=========================================================================
#ifdef DEB
#ifdef OCCT_DEBUG
Standard_Integer TestTopOpeTools_SetContext(Draw_Interpretor&, Standard_Integer n ,const char** a)
{
Standard_Integer ok = Standard_True;