Skip to content

Commit ecb5f30

Browse files
committed
Always resume jump even if RCPP_PROTECTED_EVAL is not set
A LongjumpException might be sent by another package called via cpp interface
1 parent 91fef0a commit ecb5f30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inst/include/Rcpp/exceptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ namespace Rcpp {
149149
token = getLongjumpToken(token);
150150
}
151151
::R_ReleaseObject(token);
152-
#if (defined(RCPP_PROTECTED_EVAL) && defined(R_VERSION) && R_VERSION >= R_Version(3, 5, 0))
152+
#if (defined(R_VERSION) && R_VERSION >= R_Version(3, 5, 0))
153153
::R_ContinueUnwind(token);
154154
#endif
155155
Rf_error("Internal error: Rcpp longjump failed to resume");

0 commit comments

Comments
 (0)