From 99ae0d5f3462bab8d4725b6c2bfb6590f1276d1f Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Tue, 13 Dec 2005 22:37:29 +0000 Subject: [PATCH] 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 --- Lib/typemaps/ptrtypes.swg | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Lib/typemaps/ptrtypes.swg b/Lib/typemaps/ptrtypes.swg index ef739404e..8d16e941f 100644 --- a/Lib/typemaps/ptrtypes.swg +++ b/Lib/typemaps/ptrtypes.swg @@ -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