| 136 | } |
| 137 | |
| 138 | inline 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 | |
| 145 | inline SEXP getLongjumpToken(SEXP sentinel) { |
| 146 | return VECTOR_ELT(sentinel, 0); |
no outgoing calls