[Sketcher] set debug as cross platform

This commit is contained in:
0penBrain
2022-01-20 10:17:16 +01:00
committed by wwmayer
parent 7b23f6793c
commit b3e52226fe

View File

@@ -1281,7 +1281,7 @@ void ViewProviderSketch::moveConstraint(int constNum, const Base::Vector2d &toPo
const std::vector<Sketcher::Constraint *> &constrlist = getSketchObject()->Constraints.getValues();
Constraint *Constr = constrlist[constNum];
#ifdef _DEBUG
#ifdef FC_DEBUG
int intGeoCount = getSketchObject()->getHighestCurveIndex() + 1;
int extGeoCount = getSketchObject()->getExternalGeometryCount();
#endif
@@ -1289,7 +1289,7 @@ void ViewProviderSketch::moveConstraint(int constNum, const Base::Vector2d &toPo
// with memory allocation
const std::vector<Part::Geometry *> geomlist = getSolvedSketch().extractGeometry(true, true);
#ifdef _DEBUG
#ifdef FC_DEBUG
assert(int(geomlist.size()) == extGeoCount + intGeoCount);
assert((Constr->First >= -extGeoCount && Constr->First < intGeoCount)
|| Constr->First != GeoEnum::GeoUndef);