Skip to content
Prev 5364 / 10988 Next

[Rcpp-devel] #ifdef'd out // [[Rcpp::export]]

Hi Greg,

While sourceCpp does parsing of the translation unit to discover exported
functions, it's not a full-on C++ parser (that would require a huge effort
and/or taking on a large dependency like libclang or gccxml). In any case,
in our parser we try to be as semantically sophisticated as we can but as
you discovered we don't get everything. For your case, we do however
respect block-level comments so you could temporarily exclude a part of the
translation unit using /* */.

J.J.
On Sun, Feb 24, 2013 at 11:35 AM, Greg Minshall <minshall at umich.edu> wrote:

            
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20130224/9bb16f19/attachment.html>