Skip to content

Commit f4baccc

Browse files
committed
Restore CPP11_UNWIND for textshaping
r-lib/textshaping#47
1 parent 84cf6bc commit f4baccc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

inst/include/cpp11/declarations.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ T& unmove(T&& t) {
3030
}
3131
} // namespace cpp11
3232

33+
// We would like to remove this, since all supported versions of R now support proper
34+
// unwind protect, but some groups rely on it existing, like textshaping:
35+
// https://github.com/r-lib/cpp11/issues/414
36+
#define CPP11_UNWIND R_ContinueUnwind(err);
37+
3338
#define CPP11_ERROR_BUFSIZE 8192
3439

3540
#define BEGIN_CPP11 \

0 commit comments

Comments
 (0)