fix typecheck for INPUT* type

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6901 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-12-20 09:50:55 +00:00
commit 275031b938

View file

@ -98,7 +98,7 @@ or you can use the %apply directive :
%typemap(freearg) Type *INPUT, Type &INPUT
"if (res$argnum == SWIG_NEWOBJ) delete $1;";
%typemap(typecheck,precedence=code,fragment=asptr_frag) Type *INPUT, Type &INPUT
"$1 = asptr_meth($input, (Type*)0) != 0;"
"$1 = asptr_meth($input, (Type**)0) != 0;"
%enddef
// OUTPUT typemaps. These typemaps are used for parameters that