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+
162015-09-28 Dirk Eddelbuettel <
[email protected] >
27
38 * inst/NEWS.Rd: GitHub pull requests and issues are now linked
Original file line number Diff line number Diff line change 1212 \item No longer use \code {STRING_ELT } as left - hand side , thanks to a
1313 heads - up by Luke Tierney (PR \ghpr {378 } fixing \ghit {377 }).
1414 }
15+ \item Changes in Rcpp Attributes :
16+ \itemize {
17+ \item Enable export of C ++ interface for functions that return void.
18+ }
1519 \item Changes in Rcpp Documentation :
1620 \itemize {
1721 \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 {
20352035 << " throw Rcpp::exception(as<std::string>("
20362036 << " __result).c_str());"
20372037 << 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+
20412043 ostr () << " }" << std::endl << std::endl;
20422044 }
20432045 }
You can’t perform that action at this time.
0 commit comments