diff options
author | Marcelo Matus <mmatus@acms.arizona.edu> | 2005-11-03 14:23:18 +0000 |
---|---|---|
committer | Marcelo Matus <mmatus@acms.arizona.edu> | 2005-11-03 14:23:18 +0000 |
commit | 07ff83fdc356c00769753546b39f0d090af66641 (patch) | |
tree | 78c44a234fe4ccbf4e5ed52f842ebb5c125cb983 | |
parent | ea0c2ca342f303d97034c7f4e70aeeb7198a94d5 (diff) | |
download | swig-07ff83fdc356c00769753546b39f0d090af66641.tar.gz |
fix SWIG_Object const & typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7786 626c5289-ae23-0410-ae9c-e8d60b6d4f22
-rw-r--r-- | Lib/typemaps/swigobject.swg | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/typemaps/swigobject.swg b/Lib/typemaps/swigobject.swg index b75233d31..b5003d2e2 100644 --- a/Lib/typemaps/swigobject.swg +++ b/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 & ""; |