[[Rcpp::export]]
| 72 | |
| 73 | // [[Rcpp::export]] |
| 74 | SEXP testUnwindProtectLambda(Environment indicator, bool fail) { |
| 75 | unwindIndicator my_data(indicator); |
| 76 | SEXP out = R_NilValue; |
| 77 | out = Rcpp::unwindProtect([&] () { return maybeThrow(&fail); }); |
| 78 | return out; |
| 79 | } |
| 80 | |
| 81 | struct FunctionObj { |
| 82 | FunctionObj(int data_, bool fail_) : data(data_), fail(fail_) { } |
nothing calls this directly
no test coverage detected