py3: ported Measure and TechDraw
This commit is contained in:
@@ -29,7 +29,11 @@ PyObject* DrawViewCollectionPy::addView(PyObject* args)
|
||||
|
||||
int i = collect->addView(view);
|
||||
|
||||
#if PY_MAJOR_VERSION < 3
|
||||
return PyInt_FromLong((long) i);
|
||||
#else
|
||||
return PyLong_FromLong((long) i);
|
||||
#endif
|
||||
}
|
||||
|
||||
PyObject* DrawViewCollectionPy::removeView(PyObject* args)
|
||||
@@ -47,7 +51,11 @@ PyObject* DrawViewCollectionPy::removeView(PyObject* args)
|
||||
|
||||
int i = collect->removeView(view);
|
||||
|
||||
#if PY_MAJOR_VERSION < 3
|
||||
return PyInt_FromLong((long) i);
|
||||
#else
|
||||
return PyLong_FromLong((long) i);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user