r-lib / cpp11

cpp11 helps you to interact with R objects using C++ code.
https://cpp11.r-lib.org/
Other
199 stars 46 forks source link

Remove `cpp11_should_unwind_protect` altogether #327

Closed DavisVaughan closed 1 year ago

DavisVaughan commented 1 year ago

Closes #325 Closes #326

Note that this makes the example from https://github.com/r-lib/cpp11/issues/298 very slow again, because nested unwind_protect() is no longer "optimized". This is an example where character vector manipulation may be better with a manual unwind_protect() + R C API usage