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:
parent
5a0f780ba4
commit
275031b938
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue