fix *INPUT typemaps for ptr types, now a null value is ok
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6897 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b316e6445a
commit
839e80a70b
4 changed files with 70 additions and 5 deletions
|
|
@ -80,11 +80,7 @@ or you can use the %apply directive :
|
|||
res = asptr_meth($input, &$1);
|
||||
if (!res) {
|
||||
SWIG_type_error("$basetype", $input);
|
||||
} else {
|
||||
if (!$1) {
|
||||
SWIG_null_ref("$basetype");
|
||||
}
|
||||
}
|
||||
}
|
||||
if (SWIG_arg_fail($argnum)) SWIG_fail;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue