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

Function Rcpp_precious_remove

src/barrier.cpp:125–136  ·  view source on GitHub ↗

[[Rcpp::register]]

Source from the content-addressed store, hash-verified

123}
124// [[Rcpp::register]]
125void 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected