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

Function reset_current_error

src/barrier.cpp:208–221  ·  view source on GitHub ↗

[[Rcpp::register]]

Source from the content-addressed store, hash-verified

206
207// [[Rcpp::register]]
208SEXP reset_current_error() { // #nocov start
209 SEXP cache = get_rcpp_cache();
210
211 // error occured
212 set_error_occured(cache, Rf_ScalarLogical(FALSE));
213
214 // current error
215 set_current_error(cache, R_NilValue);
216
217 // stack trace
218 SET_VECTOR_ELT(cache, 3, R_NilValue);
219
220 return R_NilValue;
221}
222
223// [[Rcpp::register]]
224int error_occured() {

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