File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change
1
+ 2015-10-01 JJ Allaire <
[email protected] >
2
+
3
+ * src/attributes.cpp: Enable export of C++ interface for
4
+ functions that return void
5
+
1
6
2015-09-28 Dirk Eddelbuettel <
[email protected] >
2
7
3
8
* inst/NEWS.Rd: GitHub pull requests and issues are now linked
Original file line number Diff line number Diff line change 12
12
\item No longer use \code {STRING_ELT } as left - hand side , thanks to a
13
13
heads - up by Luke Tierney (PR \ghpr {378 } fixing \ghit {377 }).
14
14
}
15
+ \item Changes in Rcpp Attributes :
16
+ \itemize {
17
+ \item Enable export of C ++ interface for functions that return void.
18
+ }
15
19
\item Changes in Rcpp Documentation :
16
20
\itemize {
17
21
\item The \code {NEWS } file now links to GitHub issue tickets and pull
Original file line number Diff line number Diff line change @@ -2035,9 +2035,11 @@ namespace attributes {
2035
2035
<< " throw Rcpp::exception(as<std::string>("
2036
2036
<< " __result).c_str());"
2037
2037
<< std::endl;
2038
- ostr () << " return Rcpp::as<" << function.type () << " >"
2039
- << " (__result);" << std::endl;
2040
-
2038
+ if (!function.type ().isVoid ()) {
2039
+ ostr () << " return Rcpp::as<" << function.type () << " >"
2040
+ << " (__result);" << std::endl;
2041
+ }
2042
+
2041
2043
ostr () << " }" << std::endl << std::endl;
2042
2044
}
2043
2045
}
You can’t perform that action at this time.
0 commit comments