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

Function Promise_Impl

inst/include/Rcpp/Promise.h:31–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 RCPP_GENERATE_CTOR_ASSIGN(Promise_Impl)
30
31 Promise_Impl( SEXP x){
32 if( TYPEOF(x) != PROMSXP) {
33 const char* fmt = "Not a promise: [type = %s].";
34 throw not_compatible(fmt, Rf_type2char(TYPEOF(x)));
35 }
36
37 Storage::set__(x) ;
38 }
39
40 /**
41 * Return the result of the PRSEEN macro

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected