[[Rcpp::register]]
| 206 | |
| 207 | // [[Rcpp::register]] |
| 208 | SEXP 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]] |
| 224 | int error_occured() { |
nothing calls this directly
no test coverage detected