-
Notifications
You must be signed in to change notification settings - Fork 32
Remove legacy non-unwind protect code paths #241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR simplifies the codebase by removing legacy code paths that supported non-unwind protect mode in Rcpp. Since Rcpp has defaulted to unwind protect since July 2022 and the package now requires Rcpp >= 1.0.10 (released in 2023), the conditional compilation and fallback code are no longer needed.
Key changes:
- Removed conditional compilation directives (
#ifdef RCPP_USING_UNWIND_PROTECT) - Removed legacy
invoke_wrapped()method and associated helper functions (invoke_c, exception handling code) - Updated minimum Rcpp version requirement from 0.12.9 to 1.0.10
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| DESCRIPTION | Updated minimum Rcpp version from 0.12.9 to 1.0.10 |
| src/later.cpp | Removed conditional compilation for callback invocation, now always uses invoke() |
| src/callback_registry.h | Removed invoke_wrapped() declaration and conditional compilation in StdFunctionCallback::invoke() |
| src/callback_registry.cpp | Removed 152 lines of legacy code including invoke_c() and invoke_wrapped() implementations |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
28cfadd to
0037664
Compare
0037664 to
f30b0db
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- NEWS entry
Thank you!
Co-authored-by: Barret Schloerke <schloerke@gmail.com>
Co-authored-by: Barret Schloerke <schloerke@gmail.com>
Simplifies the code base as Rcpp has defaulted to using unwind protect since Jul 2022.
We now require the next major version of Rcpp after that (1.0.10) from 2023.