MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / ~Shield

Method ~Shield

inst/include/Rcpp/protection/Shield.h:38–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 public:
37 Shield( SEXP t_) : t(Rcpp_protect(t_)){}
38 ~Shield(){
39 if( t != R_NilValue ) Rcpp_unprotect(1) ;
40 }
41
42 operator SEXP() const { return t; }
43 SEXP t ;

Callers

nothing calls this directly

Calls 1

Rcpp_unprotectFunction · 0.85

Tested by

no test coverage detected