don't use Py_None directly nor &PyType_Type
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7925 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
db923a855e
commit
0067241a84
9 changed files with 67 additions and 46 deletions
|
|
@ -262,8 +262,7 @@ namespace swig
|
|||
{
|
||||
%ignore stop_iteration;
|
||||
%typemap(throws) stop_iteration {
|
||||
Py_INCREF(Py_None);
|
||||
PyErr_SetObject(PyExc_StopIteration, Py_None);
|
||||
PyErr_SetObject(PyExc_StopIteration, SWIG_Py_Void());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue