Skip to content

Conversation

@shikokuchuo
Copy link
Member

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.

Copy link

Copilot AI left a 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.

Copy link
Collaborator

@schloerke schloerke left a 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!

shikokuchuo and others added 3 commits November 13, 2025 23:06
Co-authored-by: Barret Schloerke <schloerke@gmail.com>
Co-authored-by: Barret Schloerke <schloerke@gmail.com>
@shikokuchuo shikokuchuo merged commit 97b92ad into main Nov 13, 2025
20 checks passed
@shikokuchuo shikokuchuo deleted the unwind-protect branch November 13, 2025 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants