diff options
author | joequant <joequant@gmail.com> | 2013-07-14 20:28:17 +0800 |
---|---|---|
committer | joequant <joequant@gmail.com> | 2013-07-14 20:28:17 +0800 |
commit | 93b63969f9b70895ee1d841c66f414b1be46e90d (patch) | |
tree | 97b7aa71c6259af45cec5da5f291adb16fd3e714 /Lib | |
parent | d0af4f50d301cd971e7dadf1e48a5b5c8c66e4b4 (diff) | |
download | swig-93b63969f9b70895ee1d841c66f414b1be46e90d.tar.gz |
change to allow file SEXP return values
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/r/rtype.swg | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/r/rtype.swg b/Lib/r/rtype.swg index b4571af46..b86a618d9 100644 --- a/Lib/r/rtype.swg +++ b/Lib/r/rtype.swg @@ -151,6 +151,8 @@ string &, std::string & #%typemap(scoerceout) SWIGTYPE *const # %{ class($result) <- "$R_class"; %} + %typemap(scoerceout) SEXP %{ %} + %typemap(scoerceout) SWIGTYPE %{ $result <- new("$&R_class", ref=$result); %} |