static PyObject *StrokeVertexIterator_incremented(BPy_StrokeVertexIterator *self) { if (self->sv_it->isEnd()) { PyErr_SetString(PyExc_RuntimeError, "cannot increment any more"); return NULL; } StrokeInternal::StrokeVertexIterator *copy = new StrokeInternal::StrokeVertexIterator(*self->sv_it); copy->increment(); return BPy_StrokeVertexIterator_from_StrokeVertexIterator(*copy, self->reversed); }