Generate the C++ code required to initialize global objects
| 2827 | |
| 2828 | // Generate the C++ code required to initialize global objects |
| 2829 | void initializeGlobals(std::ostream& ostr) { |
| 2830 | ostr << "#ifdef RCPP_USE_GLOBAL_ROSTREAM" << std::endl; |
| 2831 | ostr << "Rcpp::Rostream<true>& Rcpp::Rcout = Rcpp::Rcpp_cout_get();"; |
| 2832 | ostr << std::endl; |
| 2833 | ostr << "Rcpp::Rostream<false>& Rcpp::Rcerr = Rcpp::Rcpp_cerr_get();"; |
| 2834 | ostr << std::endl; |
| 2835 | ostr << "#endif" << std::endl << std::endl; |
| 2836 | } |
| 2837 | |
| 2838 | // Generate the C++ code required to make [[Rcpp::export]] functions |
| 2839 | // available as C symbols with SEXP parameters and return |
no outgoing calls
no test coverage detected