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