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

Function isLongjumpSentinel

inst/include/Rcpp/exceptions.h:138–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138inline bool isLongjumpSentinel(SEXP x) { // #nocov start
139 return
140 Rf_inherits(x, "Rcpp:longjumpSentinel") &&
141 TYPEOF(x) == VECSXP &&
142 Rf_length(x) == 1;
143}
144
145inline SEXP getLongjumpToken(SEXP sentinel) {
146 return VECTOR_ELT(sentinel, 0);

Callers 4

test_cpp_interfaceFunction · 0.85
resumeJumpFunction · 0.85
LongjumpExceptionMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_cpp_interfaceFunction · 0.68