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

Function Rcpp_protect

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

Source from the content-addressed store, hash-verified

21namespace Rcpp{
22
23 inline SEXP Rcpp_protect(SEXP x){
24 if( x != R_NilValue ) PROTECT(x) ;
25 return x ;
26 }
27
28 inline void Rcpp_unprotect(int i){
29 // Prefer this function over UNPROTECT() in Rcpp so that all

Callers 2

operator()Method · 0.85
ShieldMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected