1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-29 14:00:49 +03:00

0032402: Coding Rules - eliminate msvc warning C4668 (symbol is not defined as a preprocessor macro, replacing with '0' for directive)

Make preprocessor expressions consistent with respect to guard expressions.

Fixed usage of macros __QNX__, IRIX, OCCT_DEBUG, DO_INVERSE, DRAW, CHFI3D_DEB by value.
Removed obsolete hack for Sun Workshop 5.0 compiler.
This commit is contained in:
zaphod
2021-05-30 12:27:19 +02:00
committed by bugmaster
parent d5477f8c82
commit ff1f0c9ae2
29 changed files with 102 additions and 111 deletions

View File

@@ -28,7 +28,7 @@
IMPLEMENT_STANDARD_RTTIEXT(GeomFill_CircularBlendFunc,Approx_SweepFunction)
#if DRAW
#ifdef DRAW
#include <GeomAdaptor_Curve.hxx>
#include <Geom_BSplineCurve.hxx>
#include <DrawTrSurf.hxx>
@@ -281,7 +281,7 @@ Standard_Boolean GeomFill_CircularBlendFunc::D0(const Standard_Real Param,
myRadius, Center,
Poles, Weigths);
#if DRAW
#ifdef DRAW
// Handle(Geom_BSplineCurve) BS =
// new Geom_BSplineCurve(Poles,Weights,Knots,Mults,Degree);
// sprintf(name,"SECT_%d",NbSections++);

View File

@@ -389,7 +389,7 @@ Handle(GeomFill_TrihedronLaw) GeomFill_CorrectedFrenet::Copy() const
// Standard_Real StartAng = 0, AvStep, Step, t;
Standard_Real StartAng = 0, AvStep, Step;
#if DRAW
#ifdef DRAW
Standard_Real t;
if (Affich) { // Display the curve C'^C''(t)
@@ -449,7 +449,7 @@ Handle(GeomFill_TrihedronLaw) GeomFill_CorrectedFrenet::Copy() const
HArrNormal->ChangeValue(i) = SeqNormal(i);
};
#if DRAW
#ifdef DRAW
if (Affich) {
draw(EvolAroundT);
}

View File

@@ -61,7 +61,7 @@ GeomFill_EvolvedSection::GeomFill_EvolvedSection(const Handle(Geom_Curve)& C,
}
}
#if DRAW
#ifdef DRAW
if (Affich) {
char name[256];
sprintf(name,"UnifSect_%d",++NumSec);

View File

@@ -41,7 +41,7 @@ IMPLEMENT_STANDARD_RTTIEXT(GeomFill_GuideTrihedronPlan,GeomFill_TrihedronWithGui
//#include <gp_Trsf2d.hxx>
//#include <Bnd_Box2d.hxx>
#if DRAW
#ifdef DRAW
#include <DrawTrSurf.hxx>
#endif

View File

@@ -62,7 +62,7 @@
IMPLEMENT_STANDARD_RTTIEXT(GeomFill_LocationGuide,GeomFill_LocationLaw)
#if DRAW
#ifdef DRAW
static Standard_Integer Affich = 0;
#include <Approx_Curve3d.hxx>
#include <DrawTrSurf.hxx>
@@ -195,7 +195,7 @@ static void InGoodPeriod(const Standard_Real Prec,
Trans.SetIdentity();
WithTrans = Standard_False;
#if DRAW
#ifdef DRAW
if (Affich) {
Approx_Curve3d approx(myGuide, 1.e-4,
GeomAbs_C1,

View File

@@ -60,7 +60,7 @@ GeomFill_UniformSection::GeomFill_UniformSection(const Handle(Geom_Curve)& C,
}
}
#if DRAW
#ifdef DRAW
if (Affich) {
char name[256];
sprintf(name,"UnifSect_%d",++NumSec);