1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +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

@@ -45,7 +45,7 @@
//! evaluated to zero (false).
//! The first argument is evaluated by all macros except Standard_ASSERT_VOID
//! which does not evaluate first argument when in Release mode.
//! The mode is triggered by preprocessor macro DEB: if it is defined,
//! The mode is triggered by preprocessor macro _DEBUG: if it is defined,
//! Debug mode is assumed, Release otherwise.
//!
//! In debug mode, if condition is not satisfied the macros call
@@ -70,7 +70,7 @@
inline void Standard_ASSERT_DO_NOTHING() {}
// User messages are activated in debug mode only
#ifdef DEB
#ifdef _DEBUG
#if (defined(_WIN32) || defined(__WIN32__))
#if defined(_MSC_VER)
// VS-specific intrinsic
@@ -86,7 +86,7 @@ inline void Standard_ASSERT_DO_NOTHING() {}
#define Standard_ASSERT_DBGBREAK_() raise(SIGTRAP)
#endif
#if defined(_MSC_VER) && defined(_DEBUG)
#if defined(_MSC_VER)
#include <crtdbg.h>
// use debug CRT built-in function that show up message box to user
// with formatted assert description and 3 possible actions

View File

@@ -236,7 +236,7 @@ Standard_Real ATanh(const Standard_Real Value)
{
if ( (Value <= -1.) || (Value >= 1.) ){
Standard_NumericError::Raise("Illegal agument in ATanh");
#ifdef STANDARD_DEB
#ifdef OCCT_DEBUG
cout << "Illegal agument in ATanh" << endl ;
#endif
}
@@ -250,7 +250,7 @@ Standard_Real ACosh (const Standard_Real Value)
{
if ( Value < 1. ){
Standard_NumericError::Raise("Illegal agument in ACosh");
#ifdef STANDARD_DEB
#ifdef OCCT_DEBUG
cout << "Illegal agument in ACosh" << endl ;
#endif
}
@@ -263,7 +263,7 @@ Standard_Real ACosh (const Standard_Real Value)
Standard_Real Log (const Standard_Real Value)
{ if ( Value <= 0. ){
Standard_NumericError::Raise("Illegal agument in Log");
#ifdef STANDARD_DEB
#ifdef OCCT_DEBUG
cout << "Illegal agument in Log" << endl ;
#endif
}
@@ -276,7 +276,7 @@ Standard_Real Sqrt (const Standard_Real Value)
{
if ( Value < 0. ){
Standard_NumericError::Raise("Illegal agument in Sqrt");
#ifdef STANDARD_DEB
#ifdef OCCT_DEBUG
cout << "Illegal agument in Sqrt" << endl ;
#endif
}