From c655b7d1bee10777ea66c86d4cda573e4093aa42 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Thu, 3 Nov 2005 14:23:18 +0000 Subject: [PATCH] fix SWIG_Object const & typemap git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7786 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Lib/typemaps/swigobject.swg | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/SWIG/Lib/typemaps/swigobject.swg b/SWIG/Lib/typemaps/swigobject.swg index b75233d31..b5003d2e2 100644 --- a/SWIG/Lib/typemaps/swigobject.swg +++ b/SWIG/Lib/typemaps/swigobject.swg @@ -5,7 +5,12 @@ %typemap(in) SWIG_Object "$1 = $input;"; %typemap(freearg) SWIG_Object ""; -%typemap(in) SWIG_Object const & "$1 = &$input;"; +%typemap(in,noblock=1) SWIG_Object const & ($*ltype temp) +{ + temp = %static_cast($input, $*ltype); + $1 = &temp; +} + %typemap(freearg) SWIG_Object const & "";