MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / rcpp_error_recorder

Function rcpp_error_recorder

src/barrier.cpp:230–240  ·  view source on GitHub ↗

[[Rcpp::internal]]

Source from the content-addressed store, hash-verified

228
229// [[Rcpp::internal]]
230SEXP rcpp_error_recorder(SEXP e) {
231 SEXP cache = get_rcpp_cache();
232
233 // error occured
234 set_error_occured(cache, Rf_ScalarLogical(TRUE));
235
236 // current error
237 set_current_error(cache, e);
238
239 return R_NilValue;
240}
241
242// [[Rcpp::register]]
243SEXP rcpp_get_current_error() {

Callers

nothing calls this directly

Calls 3

get_rcpp_cacheFunction · 0.85
set_error_occuredFunction · 0.85
set_current_errorFunction · 0.85

Tested by

no test coverage detected