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 | |
parent | d0af4f50d301cd971e7dadf1e48a5b5c8c66e4b4 (diff) | |
download | swig-93b63969f9b70895ee1d841c66f414b1be46e90d.tar.gz |
change to allow file SEXP return values
-rw-r--r-- | CHANGES.current | 2 | ||||
-rw-r--r-- | Lib/r/rtype.swg | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/CHANGES.current b/CHANGES.current index c07420a00..1e385ce29 100644 --- a/CHANGES.current +++ b/CHANGES.current @@ -4,6 +4,8 @@ See the RELEASENOTES file for a summary of changes in each release. Version 2.0.11 (in progress) ============================ +2013-07-14: joequant + [R] Change types file to allow for SEXP return values 2013-07-05: wsfulton [Python] Add %pythonbegin directive which works like %pythoncode, except the specified code is 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); %} |