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:
Marcelo Matus 2004-12-19 22:36:45 +00:00
commit 839e80a70b
4 changed files with 70 additions and 5 deletions

View file

@ -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;
}