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.
U2o(u2o), V2o(v2o)
{
-#if OCCT_DEBUG
+#ifdef OCCT_DEBUG
//if(indicemin == indicemax)
//{
// cout<<"ApproxInt_MultiLine: indicemin = indicemax = " << indicemin << endl;
U1o(u1o), V1o(v1o),
U2o(u2o), V2o(v2o)
{
-#if OCCT_DEBUG
+#ifdef OCCT_DEBUG
//if(indicemin == indicemax)
//{
// cout<<"ApproxInt_MultiLine: indicemin = indicemax = " << indicemin << endl;
P2B=P2C;
}
-#if OCCT_DEBUG
+#ifdef OCCT_DEBUG
//if (temp->NbPnts() < NbPntsToInsert + High - Low + 1)
//{
// cout<<" *** Pas assez de points entre :"<<
TopExp::Vertices(myWire, Vf, Vl);
if (Vf.IsSame(Vl)) myWire.Closed(Standard_True);
}
-#if DRAW
+#ifdef DRAW
if (Affich) {
DBRep::Set("TheWire", myWire);
}
Handle(Geom_Plane) Plan = new (Geom_Plane)(Pt, myDir);
Surf = new (Geom_RectangularTrimmedSurface) (Plan,-L, L, -L, L);
-#if DRAW
+#ifdef DRAW
if (Affich) {
char* Temp = "ThePlan" ;
DrawTrSurf::Set(Temp, Surf);
Handle(Geom_Curve) TC = new (Geom_TrimmedCurve) (L, 0, Length);
-#if DRAW
+#ifdef DRAW
if (Affich > 2) {
TC = new (Geom_Circle) (gp::XOY(), Length);
}
RemLoc.Remove(myLast);
myLast = RemLoc.GetResult();
-#if DRAW
+#ifdef DRAW
if (Affich) {
DBRep::Set("theprof", TheProf);
DBRep::Set("thefirst", myFirst);
}
// eap 5 Jun 2002 occ332, end modif
}
-#if DRAW
+#ifdef DRAW
if (Affich) {
DBRep::Set("PipeFirst", myFirst);
DBRep::Set("PipeLast", myLast);
}
WW = B.Wire();
-#if DRAW
+#ifdef DRAW
if (Affich)
DBRep::Set("wire-on-face", WW);
#endif
WithE4 = Standard_True;
}
-#if DRAW
+#ifdef DRAW
if (Affich) {
DBRep::Set("Fill_Edge1", E1);
DBRep::Set("Fill_Edge2", E2);
*/
}
-#if DRAW
+#ifdef DRAW
if (Affich) {
char* Temp = "Surf_Init" ;
DrawTrSurf::Set(Temp, Surf);
if (ToReverseResult)
Result.Reverse();
-#if DRAW
+#ifdef DRAW
if (Affich) DBRep::Set("BoucheTrou", Result);
#endif
return Standard_False;
}
E = MkE.Edge();
-#if DRAW
+#ifdef DRAW
if (Affich) {
sprintf(name,"Surf_%d", ipath);
char* Temp = name;
Standard_Integer aShapeSectionPos; // go to ShapeSection
theIStream.read ((char*)&aShapeSectionPos, sizeof(Standard_Integer));
-#if DO_INVERSE
+#ifdef DO_INVERSE
aShapeSectionPos = InverseInt (aShapeSectionPos);
#endif
#ifdef OCCT_DEBUG
// read the tag of a child label
Standard_Integer aTag = BinLDrivers_ENDLABEL;
theIS.read ((char*) &aTag, sizeof(Standard_Integer));
-#if DO_INVERSE
+#ifdef DO_INVERSE
aTag = InverseInt (aTag);
#endif
// read the tag of the next child
theIS.read ((char*) &aTag, sizeof(Standard_Integer));
-#if DO_INVERSE
+#ifdef DO_INVERSE
aTag = InverseInt (aTag);
#endif
}
aBufSize += sizeof(Standard_Integer);
// Write the buffer: size + string
-#if DO_INVERSE
+#ifdef DO_INVERSE
aBufSz[0] = InverseInt ((Standard_Integer)aBufSize);
#else
aBufSz[0] = (Standard_Integer)aBufSize;
int32_t(myValue[1]),
int32_t(myIsPostRead ? 1 : 0)
};
-#if DO_INVERSE
+#ifdef DO_INVERSE
aValInt[0] = InverseInt(aValInt[0]);
aValInt[1] = InverseInt(aValInt[1]);
aValInt[2] = InverseInt(aValInt[2]);
myValue[1],
uint64_t(myIsPostRead ? 1 : 0)
};
-#if DO_INVERSE
+#ifdef DO_INVERSE
aVal[0] = InverseUint64(aVal[0]);
aVal[1] = InverseUint64(aVal[1]);
aVal[2] = InverseUint64(aVal[2]);
char aBuf[512];
Standard_Integer aNameBufferSize;
theStream.read ((char *)&aNameBufferSize, sizeof(Standard_Integer));
-#if DO_INVERSE
+#ifdef DO_INVERSE
aNameBufferSize = InverseSize(aNameBufferSize);
#endif
if (aNameBufferSize > 0) {
// Old documents stored file position as 4-bytes values.
int32_t aValInt[3];
theStream.read ((char *)&aValInt[0], 3*sizeof(int32_t));
-#if DO_INVERSE
+#ifdef DO_INVERSE
aValue[0] = InverseInt (aValInt[0]);
aValue[1] = InverseInt (aValInt[1]);
aValue[2] = InverseInt (aValInt[2]);
else
{
theStream.read ((char *)&aValue[0], 3*sizeof(uint64_t));
-#if DO_INVERSE
+#ifdef DO_INVERSE
aValue[0] = InverseUint64 (aValue[0]);
aValue[1] = InverseUint64 (aValue[1]);
aValue[2] = InverseUint64 (aValue[2]);
Message_ProgressScope aPS(theRange, "Writing sub tree", 2, true);
// Write label header: tag
Standard_Integer aTag = theLabel.Tag();
-#if DO_INVERSE
+#ifdef DO_INVERSE
aTag = InverseInt (aTag);
#endif
theOS.write ((char*)&aTag, sizeof(Standard_Integer));
}
// Write the end attributes list marker
BinLDrivers_Marker anEndAttr = BinLDrivers_ENDATTRLIST;
-#if DO_INVERSE
+#ifdef DO_INVERSE
anEndAttr = (BinLDrivers_Marker) InverseInt (anEndAttr);
#endif
theOS.write ((char*)&anEndAttr, sizeof(anEndAttr));
// Write the end label marker
BinLDrivers_Marker anEndLabel = BinLDrivers_ENDLABEL;
-#if DO_INVERSE
+#ifdef DO_INVERSE
anEndLabel = (BinLDrivers_Marker) InverseInt (anEndLabel);
#endif
theOS.write ((char*)&anEndLabel, sizeof(anEndLabel));
Standard_Integer *aData = (Standard_Integer*) myData(1);
// update data length
aData[2] = mySize - BP_HEADSIZE;
-#if DO_INVERSE
+#ifdef DO_INVERSE
aData[0] = InverseInt (aData[0]);
aData[1] = InverseInt (aData[1]);
aData[2] = InverseInt (aData[2]);
// read TypeId
theIS.read ((char*) &aData[0], BP_INTSIZE);
-#if DO_INVERSE
+#ifdef DO_INVERSE
aData[0] = InverseInt (aData[0]);
#endif
if (theIS && aData[0] > 0) {
// read Id and Length
theIS.read ((char*)&aData[1], 2 * BP_INTSIZE);
-#if DO_INVERSE
+#ifdef DO_INVERSE
aData[1] = InverseInt (aData[1]);
aData[2] = InverseInt (aData[2]);
#endif
prepareForPut (BP_EXTCHARSIZE);
Standard_ExtCharacter *aData =
(Standard_ExtCharacter*) ((char*)myData(myIndex) + myOffset);
-#if DO_INVERSE
+#ifdef DO_INVERSE
*aData = InverseExtChar (theValue);
#else
*aData = theValue;
alignOffset (BP_INTSIZE, Standard_True);
prepareForPut (BP_INTSIZE);
Standard_Integer *aData = (Standard_Integer*) ((char*)myData(myIndex) + myOffset);
-#if DO_INVERSE
+#ifdef DO_INVERSE
*aData = InverseInt (theValue);
#else
*aData = theValue;
Standard_Integer nbPieces = prepareForPut (BP_REALSIZE);
if (nbPieces > 0) {
// the value intersects a piece boundary => go a long way
-#if DO_INVERSE
+#ifdef DO_INVERSE
Standard_Integer aStartIndex = myIndex;
Standard_Integer aStartOffset = myOffset;
#endif
putArray ((void*) &theValue, BP_REALSIZE);
-#if DO_INVERSE
+#ifdef DO_INVERSE
inverseRealData (aStartIndex, aStartOffset, BP_REALSIZE);
#endif
}
else {
// the value fits in the current piece => put it quickly
Standard_Real *aData = (Standard_Real*) ((char*)myData(myIndex) + myOffset);
-#if DO_INVERSE
+#ifdef DO_INVERSE
*aData = InverseReal (theValue);
#else
*aData = theValue;
alignOffset (BP_INTSIZE, Standard_True);
prepareForPut (BP_SHORTREALSIZE);
Standard_ShortReal *aData = (Standard_ShortReal*) ((char*)myData(myIndex) + myOffset);
-#if DO_INVERSE
+#ifdef DO_INVERSE
*aData = InverseShortReal (theValue);
#else
*aData = theValue;
alignOffset (BP_INTSIZE, Standard_True);
Standard_Integer aSize = (theValue.Length() + 1) * BP_EXTCHARSIZE;
prepareForPut (aSize);
-#if DO_INVERSE
+#ifdef DO_INVERSE
Standard_Integer aStartIndex = myIndex;
Standard_Integer aStartOffset = myOffset;
#endif
putArray ((void* )theValue.ToExtString(), aSize);
-#if DO_INVERSE
+#ifdef DO_INVERSE
inverseExtCharData (aStartIndex, aStartOffset, aSize - BP_EXTCHARSIZE);
#endif
return *this;
prepareForPut ((aLen + 1) * BP_INTSIZE);
Standard_Integer *aData = (Standard_Integer*) ((char*)myData(myIndex) + myOffset);
// store nb of tags
-#if DO_INVERSE
+#ifdef DO_INVERSE
*aData++ = InverseInt (aLen);
#else
*aData++ = aLen;
myIndex++;
aData = (Standard_Integer*) ((char*)myData(myIndex) + myOffset);
}
-#if DO_INVERSE
+#ifdef DO_INVERSE
*aData++ = InverseInt (itTag.Value());
#else
*aData++ = itTag.Value();
anUUID.Data4[5] = aStandardUUID.Data4[5];
anUUID.Data4[6] = aStandardUUID.Data4[6];
anUUID.Data4[7] = aStandardUUID.Data4[7];
-#if DO_INVERSE
+#ifdef DO_INVERSE
anUUID.Data1 = (unsigned int) InverseInt (anUUID.Data1);
anUUID.Data2 = (unsigned short) InverseExtChar (anUUID.Data2);
anUUID.Data3 = (unsigned short) InverseExtChar (anUUID.Data3);
alignOffset (BP_EXTCHARSIZE, Standard_True);
Standard_Integer aSize = theLength * BP_EXTCHARSIZE;
prepareForPut (aSize);
-#if DO_INVERSE
+#ifdef DO_INVERSE
Standard_Integer aStartIndex = myIndex;
Standard_Integer aStartOffset = myOffset;
#endif
putArray (theArray, aSize);
-#if DO_INVERSE
+#ifdef DO_INVERSE
inverseExtCharData (aStartIndex, aStartOffset, aSize);
#endif
return *this;
alignOffset (BP_INTSIZE, Standard_True);
Standard_Integer aSize = theLength * BP_INTSIZE;
prepareForPut (aSize);
-#if DO_INVERSE
+#ifdef DO_INVERSE
Standard_Integer aStartIndex = myIndex;
Standard_Integer aStartOffset = myOffset;
#endif
putArray (theArray, aSize);
-#if DO_INVERSE
+#ifdef DO_INVERSE
inverseIntData (aStartIndex, aStartOffset, aSize);
#endif
return *this;
alignOffset (BP_INTSIZE, Standard_True);
Standard_Integer aSize = theLength * BP_REALSIZE;
prepareForPut (aSize);
-#if DO_INVERSE
+#ifdef DO_INVERSE
Standard_Integer aStartIndex = myIndex;
Standard_Integer aStartOffset = myOffset;
#endif
putArray (theArray, aSize);
-#if DO_INVERSE
+#ifdef DO_INVERSE
inverseRealData (aStartIndex, aStartOffset, aSize);
#endif
return *this;
alignOffset (BP_INTSIZE, Standard_True);
Standard_Integer aSize = theLength * BP_SHORTREALSIZE;
prepareForPut (aSize);
-#if DO_INVERSE
+#ifdef DO_INVERSE
Standard_Integer aStartIndex = myIndex;
Standard_Integer aStartOffset = myOffset;
#endif
putArray (theArray, aSize);
-#if DO_INVERSE
+#ifdef DO_INVERSE
inverseShortRealData (aStartIndex, aStartOffset, aSize);
#endif
return *this;
if (noMoreData (BP_EXTCHARSIZE)) return *this;
Standard_ExtCharacter *aData =
(Standard_ExtCharacter*) ((char*)myData(myIndex) + myOffset);
-#if DO_INVERSE
+#ifdef DO_INVERSE
theValue = InverseExtChar (*aData);
#else
theValue = *aData;
alignOffset (BP_INTSIZE);
if (noMoreData (BP_INTSIZE)) return *this;
Standard_Integer *aData = (Standard_Integer*) ((char*)myData(myIndex) + myOffset);
-#if DO_INVERSE
+#ifdef DO_INVERSE
theValue = InverseInt (*aData);
#else
theValue = *aData;
theValue = *aData;
((BinObjMgt_Persistent*)this)->myOffset += BP_REALSIZE;
}
-#if DO_INVERSE
+#ifdef DO_INVERSE
theValue = InverseReal (theValue);
#endif
return *this;
alignOffset (BP_INTSIZE);
if (noMoreData (BP_SHORTREALSIZE)) return *this;
Standard_ShortReal *aData = (Standard_ShortReal*) ((char*)myData(myIndex) + myOffset);
-#if DO_INVERSE
+#ifdef DO_INVERSE
theValue = InverseShortReal (*aData);
#else
theValue = *aData;
theValue = (Standard_ExtCharacter*) aString;
Standard::Free (aString);
}
-#if DO_INVERSE
+#ifdef DO_INVERSE
Standard_PExtCharacter aString = (Standard_PExtCharacter)theValue.ToExtString();
for (Standard_Integer i=0; i < theValue.Length(); i++)
aString[i] = InverseExtChar (aString[i]);
// retrieve nb of tags
Standard_Integer *aData = (Standard_Integer*) ((char*)myData(myIndex) + myOffset);
Standard_Integer aLen = *aData++;
-#if DO_INVERSE
+#ifdef DO_INVERSE
aLen = InverseInt (aLen);
#endif
me->myOffset += BP_INTSIZE;
me->myIndex++;
aData = (Standard_Integer*) ((char*)myData(myIndex) + myOffset);
}
-#if DO_INVERSE
+#ifdef DO_INVERSE
aTagList.Append (InverseInt (*aData++));
#else
aTagList.Append (*aData++);
return *this;
BinObjMgt_UUID anUUID;
getArray (&anUUID, BP_UUIDSIZE);
-#if DO_INVERSE
+#ifdef DO_INVERSE
anUUID.Data1 = (unsigned int) InverseInt (anUUID.Data1);
anUUID.Data2 = (unsigned short) InverseExtChar (anUUID.Data2);
anUUID.Data3 = (unsigned short) InverseExtChar (anUUID.Data3);
Standard_Integer aSize = theLength * BP_EXTCHARSIZE;
if (noMoreData (aSize)) return *this;
getArray (theArray, aSize);
-#if DO_INVERSE
+#ifdef DO_INVERSE
for (Standard_Integer i=0; i < theLength; i++)
theArray[i] = InverseExtChar (theArray[i]);
#endif
Standard_Integer aSize = theLength * BP_INTSIZE;
if (noMoreData (aSize)) return *this;
getArray (theArray, aSize);
-#if DO_INVERSE
+#ifdef DO_INVERSE
for (Standard_Integer i=0; i < theLength; i++)
theArray[i] = InverseInt (theArray[i]);
#endif
Standard_Integer aSize = theLength * BP_REALSIZE;
if (noMoreData (aSize)) return *this;
getArray (theArray, aSize);
-#if DO_INVERSE
+#ifdef DO_INVERSE
for (Standard_Integer i=0; i < theLength; i++)
theArray[i] = InverseReal (theArray[i]);
#endif
Standard_Integer aSize = theLength * BP_SHORTREALSIZE;
if (noMoreData (aSize)) return *this;
getArray (theArray, aSize);
-#if DO_INVERSE
+#ifdef DO_INVERSE
for (Standard_Integer i=0; i < theLength; i++)
theArray[i] = InverseShortReal (theArray[i]);
#endif
Standard_OStream& BinTools::PutInteger(Standard_OStream& OS, const Standard_Integer aValue)
{
Standard_Integer anIntValue = aValue;
-#if DO_INVERSE
+#ifdef DO_INVERSE
anIntValue = InverseInt (aValue);
#endif
OS.write((char*)&anIntValue, sizeof(Standard_Integer));
Standard_OStream& BinTools::PutReal (Standard_OStream& theOS,
const Standard_Real& theValue)
{
-#if DO_INVERSE
+#ifdef DO_INVERSE
const Standard_Real aRValue = InverseReal (theValue);
theOS.write((char*)&aRValue, sizeof(Standard_Real));
#else
Standard_OStream& BinTools::PutShortReal (Standard_OStream& theOS,
const Standard_ShortReal& theValue)
{
-#if DO_INVERSE
+#ifdef DO_INVERSE
const Standard_ShortReal aValue = InverseShortReal (theValue);
theOS.write ((char*)&aValue, sizeof(Standard_ShortReal));
#else
Standard_OStream& BinTools::PutExtChar(Standard_OStream& OS, const Standard_ExtCharacter aValue)
{
Standard_ExtCharacter aSValue = aValue;
-#if DO_INVERSE
+#ifdef DO_INVERSE
aSValue = InverseExtChar (aValue);
#endif
OS.write((char*)&aSValue, sizeof(Standard_ExtCharacter));
{
throw Storage_StreamTypeMismatchError();
}
-#if DO_INVERSE
+#ifdef DO_INVERSE
theValue = InverseReal (theValue);
#endif
return theIS;
{
throw Storage_StreamTypeMismatchError();
}
-#if DO_INVERSE
+#ifdef DO_INVERSE
theValue = InverseShortReal (theValue);
#endif
return theIS;
{
if(!IS.read ((char*)&aValue, sizeof(Standard_Integer)))
throw Storage_StreamTypeMismatchError();
-#if DO_INVERSE
+#ifdef DO_INVERSE
aValue = InverseInt (aValue);
#endif
return IS;
{
if(!IS.read ((char*)&theValue, sizeof(Standard_ExtCharacter)))
throw Storage_StreamTypeMismatchError();
-#if DO_INVERSE
+#ifdef DO_INVERSE
theValue = InverseExtChar (theValue);
#endif
return IS;
if (CV1.IsVertex()) {
ChFi3d_SingularExtremity(Stripe, DStr, CV1.Vertex(), tol3d, tol2d);
}
-# if CHFI3D_DEB
+#ifdef CHFI3D_DEB
else { std::cout << "MakeExtremities : Singularity out of Vertex !!" << std::endl; }
-# endif
+#endif
}
return;
}
if (cpdeb1.IsVertex()) {
ChFi3d_SingularExtremity(Stripe, DStr, cpdeb1.Vertex(), tol3d, tol2d);
}
-# if CHFI3D_DEB
+#ifdef CHFI3D_DEB
else { std::cout << "MakeExtremities : Singularity out of Vertex !!" << std::endl; }
-# endif
+#endif
}
}
const Handle(ChFiDS_SurfData)&
if (cpfin1.IsVertex()) {
ChFi3d_SingularExtremity(Stripe, DStr, cpfin1.Vertex(), tol3d, tol2d);
}
-# if CHFI3D_DEB
+#ifdef CHFI3D_DEB
else { std::cout << "MakeExtremities : Singularity out of Vertex !!" << std::endl; }
-# endif
+#endif
}
}
}
}
}
else {
-# if CHFI3D_DEB
+#ifdef CHFI3D_DEB
std::cout << "Failed calculation of the minimum length" << std::endl;
-# endif
+#endif
}
}
// update if non duplication
gp_Vec(Pos.Location (), P).Dot
(gp_Vec (Pos.YDirection())) / MinorRadius;
-#if __QNX__
+#if defined(__QNX__)
return std::asinh(sht);
#else
return asinh(sht);
{
gp_Vec2d V (Pos.YDirection().XY());
Standard_Real sht = gp_Vec2d(Pos.Location(),P).Dot(V) /MinorRadius;
-#if __QNX__
+#if defined(__QNX__)
return std::asinh(sht);
#else
return asinh(sht);
IMPLEMENT_STANDARD_RTTIEXT(GeomFill_CircularBlendFunc,Approx_SweepFunction)
-#if DRAW
+#ifdef DRAW
#include <GeomAdaptor_Curve.hxx>
#include <Geom_BSplineCurve.hxx>
#include <DrawTrSurf.hxx>
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++);
// 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)
HArrNormal->ChangeValue(i) = SeqNormal(i);
};
-#if DRAW
+#ifdef DRAW
if (Affich) {
draw(EvolAroundT);
}
}
}
-#if DRAW
+#ifdef DRAW
if (Affich) {
char name[256];
sprintf(name,"UnifSect_%d",++NumSec);
//#include <gp_Trsf2d.hxx>
//#include <Bnd_Box2d.hxx>
-#if DRAW
+#ifdef DRAW
#include <DrawTrSurf.hxx>
#endif
IMPLEMENT_STANDARD_RTTIEXT(GeomFill_LocationGuide,GeomFill_LocationLaw)
-#if DRAW
+#ifdef DRAW
static Standard_Integer Affich = 0;
#include <Approx_Curve3d.hxx>
#include <DrawTrSurf.hxx>
Trans.SetIdentity();
WithTrans = Standard_False;
-#if DRAW
+#ifdef DRAW
if (Affich) {
Approx_Curve3d approx(myGuide, 1.e-4,
GeomAbs_C1,
}
}
-#if DRAW
+#ifdef DRAW
if (Affich) {
char name[256];
sprintf(name,"UnifSect_%d",++NumSec);
Curve2d = appr.Curve2d();
}
-#if DRAW
+#ifdef DRAW
if (Affich) {
char name[256];
sprintf(name,"proj_%d",++NbProj);
if (! myIsLinear)
{
myPlanarSurfInit = mySurfInit;
-#if DRAW
+#ifdef DRAW
if (Affich) {
char name[256];
sprintf(name,"planinit_%d",NbPlan+1);
}
}
-#if DRAW
+#ifdef DRAW
if (Affich) {
char name[256];
sprintf(name,"surfinit_%d",++NbPlan);
diffDistMax = diffDist;
SdiffDist+=diffDist;
NdiffDist++;
-#if DRAW
+#ifdef DRAW
if ((Affich) && (NbBoucle == myNbIter)) {
gp_Pnt P;
gp_Pnt2d P2d;
diffAngMax = diffAng;
SdiffAng+=diffAng;
NdiffAng++;
-#if DRAW
+#ifdef DRAW
if ((Affich) && (NbBoucle == myNbIter)) {
gp_Pnt P;
LinCont->D0(U,P);
myTolArc = TolArc;
myTolTang = TolTang;
if(myFleche == 0.0) {
-#if DEBUG
+#ifdef OCCT_DEBUG
//std::cout<<" -- IntPatch_Intersection::myFleche fixe par defaut a 0.01 --"<<std::endl;
//std::cout<<" -- Utiliser la Methode SetTolerances( ... ) "<<std::endl;
#endif
myFleche = 0.01;
}
if(myUVMaxStep==0.0) {
-#if DEBUG
+#ifdef OCCT_DEBUG
//std::cout<<" -- IntPatch_Intersection::myUVMaxStep fixe par defaut a 0.01 --"<<std::endl;
//std::cout<<" -- Utiliser la Methode SetTolerances( ... ) "<<std::endl;
#endif
myDeletable (Standard_False)
{
Standard_RangeError_Raise_if (theUpper < theLower, "NCollection_Array1::Create");
- #if (defined(__GNUC__) && __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
+ #if (defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)))
// gcc emits -Warray-bounds warning when NCollection_Array1 is initialized
// from local array with lower index 1 (so that (&theBegin - 1) points out of array bounds).
// NCollection_Array1 initializes myData with a shift to avoid this shift within per-element access.
#pragma GCC diagnostic ignored "-Warray-bounds"
#endif
myData = (TheItemType *) &theBegin - theLower;
- #if (defined(__GNUC__) && __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
+ #if (defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)))
#pragma GCC diagnostic pop
#endif
}
typedef
#ifdef SOLARIS
sigjmp_buf
-#elif IRIX
+#elif defined(IRIX)
sigjmp_buf
#else
jmp_buf
#if defined(__ICL) || defined (__INTEL_COMPILER)
#define Standard_DISABLE_DEPRECATION_WARNINGS __pragma(warning(push)) __pragma(warning(disable:1478))
#define Standard_ENABLE_DEPRECATION_WARNINGS __pragma(warning(pop))
-#elif (defined(__GNUC__) && __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) || defined(__clang__)
+#elif (defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))) || defined(__clang__)
// available since at least gcc 4.2 (maybe earlier), however only gcc 4.6+ supports this pragma inside the function body
// CLang also supports this gcc syntax (in addition to "clang diagnostic ignored")
#define Standard_DISABLE_DEPRECATION_WARNINGS _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
class Standard_OutOfRange;
DEFINE_STANDARD_HANDLE(Standard_OutOfRange, Standard_RangeError)
-#if (defined(__GNUC__) && __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
+#if (defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)))
// suppress false-positive warnings produced by GCC optimizer
#define Standard_OutOfRange_Always_Raise_if(CONDITION, MESSAGE) \
_Pragma("GCC diagnostic push") \
DEFINE_STANDARD_HANDLE(Standard_RangeError, Standard_DomainError)
#if !defined No_Exception && !defined No_Standard_RangeError
-#if (defined(__GNUC__) && __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
+#if (defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)))
// suppress false-positive warnings produced by GCC optimizer
#define Standard_RangeError_Raise_if(CONDITION, MESSAGE) \
_Pragma("GCC diagnostic push") \
#endif
throw Standard_NumericError("Illegal argument in ATanh");
}
-#if __QNX__
+#if defined(__QNX__)
return std::atanh(Value);
#else
return atanh(Value);
#endif
throw Standard_NumericError("Illegal argument in ACosh");
}
-#if __QNX__
+#if defined(__QNX__)
return std::acosh(Value);
#else
return acosh(Value);
// ASinh : Returns the hyperbolic arc sine of a real
//-------------------------------------------------------------------
inline Standard_Real ASinh(const Standard_Real Value)
-#if __QNX__
+#if defined(__QNX__)
{ return std::asinh(Value); }
#else
{ return asinh(Value); }
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
-// This preprocessor directive is a kludge to get around
-// a bug in the Sun Workshop 5.0 compiler, it keeps the
-// /usr/include/memory.h file from being #included
-// with an incompatible extern "C" definition of memchr
-// October 18, 2000 <rboehne@ricardo-us.com>
-#if __SUNPRO_CC == 0x500
-#define _MEMORY_H
-#endif
-
//#ifndef OCCT_DEBUG
#define No_Standard_RangeError
#define No_Standard_OutOfRange