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:
@@ -378,7 +378,7 @@ bool Image_AlienPixMap::Save (const TCollection_AsciiString& theFileName)
|
||||
#endif
|
||||
if (anImageFormat == FIF_UNKNOWN)
|
||||
{
|
||||
#ifdef IMAGE_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
std::cerr << "Image_PixMap, image format doesn't supported!\n";
|
||||
#endif
|
||||
return false;
|
||||
@@ -523,7 +523,7 @@ bool Image_AlienPixMap::Save (const TCollection_AsciiString& theFileName)
|
||||
{
|
||||
return savePPM (theFileName);
|
||||
}
|
||||
#ifdef IMAGE_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
std::cerr << "Image_PixMap, no image library available! Image saved in PPM format.\n";
|
||||
#endif
|
||||
return savePPM (theFileName);
|
||||
|
@@ -166,14 +166,14 @@ Standard_Boolean Image_Diff::Init (const Handle(Image_PixMap)& theImageRef,
|
||||
|| theImageRef->SizeY() != theImageNew->SizeY()
|
||||
|| theImageRef->Format() != theImageNew->Format())
|
||||
{
|
||||
#ifdef IMAGE_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
std::cerr << "Images has different format or dimensions\n";
|
||||
#endif
|
||||
return Standard_False;
|
||||
}
|
||||
else if (!isSupportedFormat (theImageRef->Format()))
|
||||
{
|
||||
#ifdef IMAGE_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
std::cerr << "Images has unsupported pixel format\n";
|
||||
#endif
|
||||
return Standard_False;
|
||||
@@ -181,7 +181,7 @@ Standard_Boolean Image_Diff::Init (const Handle(Image_PixMap)& theImageRef,
|
||||
else if (theImageRef->SizeX() >= 0xFFFF
|
||||
|| theImageRef->SizeY() >= 0xFFFF)
|
||||
{
|
||||
#ifdef IMAGE_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
std::cerr << "Image too large\n";
|
||||
#endif
|
||||
return Standard_False;
|
||||
@@ -229,7 +229,7 @@ Standard_Boolean Image_Diff::Init (const TCollection_AsciiString& theImgPathRef,
|
||||
if (!anImgRef->Load (theImgPathRef)
|
||||
|| !anImgNew->Load (theImgPathNew))
|
||||
{
|
||||
#ifdef IMAGE_DEB
|
||||
#ifdef OCCT_DEBUG
|
||||
std::cerr << "Failed to load image(s) file(s)\n";
|
||||
#endif
|
||||
return Standard_False;
|
||||
|
Reference in New Issue
Block a user