summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoequant <joequant@gmail.com>2013-07-14 20:28:17 +0800
committerjoequant <joequant@gmail.com>2013-07-14 20:28:17 +0800
commit93b63969f9b70895ee1d841c66f414b1be46e90d (patch)
tree97b7aa71c6259af45cec5da5f291adb16fd3e714
parentd0af4f50d301cd971e7dadf1e48a5b5c8c66e4b4 (diff)
downloadswig-93b63969f9b70895ee1d841c66f414b1be46e90d.tar.gz
change to allow file SEXP return values
-rw-r--r--CHANGES.current2
-rw-r--r--Lib/r/rtype.swg2
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); %}