diff options
author | Swati Sharma <itawswati@gmail.com> | 2012-08-16 14:00:24 +0000 |
---|---|---|
committer | Swati Sharma <itawswati@gmail.com> | 2012-08-16 14:00:24 +0000 |
commit | 342ea4bc2c1925699346869ba7a23a7cae172754 (patch) | |
tree | 025fc46e474c935a672e1d52e53f322e9bdb1c85 | |
parent | 40be57b501775c376e96158b2c70715ce8db425a (diff) | |
download | swig-342ea4bc2c1925699346869ba7a23a7cae172754.tar.gz |
Fixed typemap for member to class pointer.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-objc@13631 626c5289-ae23-0410-ae9c-e8d60b6d4f22
-rw-r--r-- | Lib/objc/objc.swg | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/objc/objc.swg b/Lib/objc/objc.swg index c9f41f3b7..25366b7f0 100644 --- a/Lib/objc/objc.swg +++ b/Lib/objc/objc.swg @@ -291,9 +291,9 @@ %typemap(out) SWIGTYPE [] %{ $result = $1; %} -// Pointer to a class member will be returned as void* +// Pointer to a class member %typemap(out) SWIGTYPE (CLASS::*) -%{ $result = (void*)$1; %} +%{ *($&1_ltype)$result =$1; %} %typemap(out) SWIGTYPE *const& %{ $result = (void *)*$1; %} |