[[Rcpp::register]]
| 123 | } |
| 124 | // [[Rcpp::register]] |
| 125 | void Rcpp_precious_remove(SEXP token) { |
| 126 | if (token == R_NilValue || TYPEOF(token) != LISTSXP) { |
| 127 | return; |
| 128 | } |
| 129 | SET_TAG(token, R_NilValue); |
| 130 | SEXP before = CAR(token); |
| 131 | SEXP after = CDR(token); |
| 132 | SETCDR(before, after); |
| 133 | if (after != R_NilValue) { |
| 134 | SETCAR(after, before); |
| 135 | } |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | // only used for debugging |
nothing calls this directly
no outgoing calls
no test coverage detected