Skip to content

Commit e7b1698

Browse files
committed
Add Shield around parameters in Rcpp::interfaces (fixes #712)
1 parent c75bbdd commit e7b1698

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2017-06-14 JJ Allaire <[email protected]>
2+
3+
* src/attributes.cpp: Add Shield around parameters in Rcpp::interfaces
4+
15
2017-06-07 Dirk Eddelbuettel <[email protected]>
26

37
* README.md: Use alternates for img.shields.io GPL-2+ badges

inst/NEWS.Rd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
addressing \ghit{702}).
2525
\item Automatically register init functions for Rcpp Modules (\ghpr{705}
2626
addressing \ghit{704}).
27+
\item Add Shield around parameters in Rcpp::interfaces (\ghit{712}).
2728
}
2829
}
2930
}

src/attributes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2172,7 +2172,7 @@ namespace attributes {
21722172

21732173
const std::vector<Argument>& args = function.arguments();
21742174
for (std::size_t i = 0; i<args.size(); i++) {
2175-
ostr() << "Rcpp::wrap(" << args[i].name() << ")";
2175+
ostr() << "Shield<SEXP>(Rcpp::wrap(" << args[i].name() << "))";
21762176
if (i != (args.size()-1))
21772177
ostr() << ", ";
21782178
}

0 commit comments

Comments
 (0)