[Rcpp-devel] Thoughts on "wrapping" attributes
Tim Keitt
tkeitt at utexas.edu
Thu Jan 2 19:11:39 CET 2014
I am wondering if anyone has considered the following:
// [[Rcpp::include(header.h, extC-bool, namesp-optional)]]
to include header.h in RcppExports.cpp (optionally wrapping it with extern
"C" and putting it in a namespace)
and
// [[Rcpp::wrap(myType myFunc(const myType& x))]]
which would do exactly what Rcpp::export does (generates a .Call-able
symbol + R function, but omits the prototype for myFunc in
RcppExports.cpp). That would allow the function and type definitions to
appear in header.h.
THK
--
http://www.keittlab.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20140102/23db41ad/attachment.html>
More information about the Rcpp-devel
mailing list