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

Method checked_set

inst/include/Rcpp/XPtr.h:202–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200
201private:
202 inline void checked_set(SEXP x) {
203 if (TYPEOF(x) != EXTPTRSXP) {
204 const char* fmt = "Expecting an external pointer: [type=%s]."; // #nocov
205 throw ::Rcpp::not_compatible(fmt, Rf_type2char(TYPEOF(x))); // #nocov
206 }
207 Storage::set__(x);
208 }
209
210};
211

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected