add missing typecheck typemap, reported by Charlie Savage
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7978 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c7ec64951d
commit
99ae0d5f34
1 changed files with 4 additions and 1 deletions
|
|
@ -137,8 +137,11 @@
|
||||||
|
|
||||||
%define %ptr_typecheck_typemap(check,asptr_meth,frag,Type...)
|
%define %ptr_typecheck_typemap(check,asptr_meth,frag,Type...)
|
||||||
%typemap(typecheck,precedence=check,fragment=frag)
|
%typemap(typecheck,precedence=check,fragment=frag)
|
||||||
Type, const Type&
|
Type *
|
||||||
"$1 = asptr_meth($input, (Type**)(0));";
|
"$1 = asptr_meth($input, (Type**)(0));";
|
||||||
|
%typemap(typecheck,precedence=check,fragment=frag)
|
||||||
|
Type, const Type&
|
||||||
|
"Type *ptr; $1 = asptr_meth($input, &ptr) && ptr;";
|
||||||
%enddef
|
%enddef
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue