update iterator typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8897 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
6e67122508
commit
9bcf5507df
1 changed files with 1 additions and 1 deletions
|
|
@ -546,7 +546,7 @@ namespace swig
|
|||
const_iterator(swig::PySwigIterator *iter = 0, int res),
|
||||
const_reverse_iterator(swig::PySwigIterator *iter = 0, int res) {
|
||||
res = SWIG_ConvertPtr($input, %as_voidptrptr(&iter), swig::PySwigIterator::descriptor(), 0);
|
||||
if (!SWIG_IsOK(res)) {
|
||||
if (!SWIG_IsOK(res) || !iter) {
|
||||
%argument_fail(SWIG_TypeError, "$type", $symname, $argnum);
|
||||
} else {
|
||||
swig::PySwigIterator_T<$type > *iter_t = dynamic_cast<swig::PySwigIterator_T<$type > *>(iter);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue