Hi,
I'm trying to do something like this :
void RLogger(const char *format,...)
{
va_list ap;
va_start(ap,format);
mylogger.write("R Log:",format, ap);
va_end(ap);
}
int main(int argc, char *argv[])
{
RInside RGlobal;
RGlobal["my_log"] = Rcpp::InternalFunction(&RLogger);
return go(argc, argv);
}
But this doesn't compile. I get the following error
error: initializing argument 1 of
‘Rcpp::InternalFunction::InternalFunction(OUT (*)(U0)) [with OUT = void, U0
= const char*]’
I was wondering if the variadic functions are allowed in the
InternalFunction, because it works if I have a single argument.
Thanks
Pratibha
_______________________________________________
Rcpp-devel mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel