Skip to content

add extern "C" wrappers to prism.h when using C++#3934

Merged
kddnewton merged 1 commit intoruby:mainfrom
froydnj:froydnj-cplusplus-includes
Feb 18, 2026
Merged

add extern "C" wrappers to prism.h when using C++#3934
kddnewton merged 1 commit intoruby:mainfrom
froydnj:froydnj-cplusplus-includes

Conversation

@froydnj
Copy link
Contributor

@froydnj froydnj commented Feb 18, 2026

The Prism integration for Sorbet has a non-trivial number of #include "prism.h" that need to be wrapped in extern "C". Usually the library's headers take care of this wrapping, which is what this PR implements.

(Sorbet has one #include of a non-prism.h file, but I don't think it's worth wrapping every individual header, and the lone instance in Sorbet is easy to change to a different header.)

@kddnewton kddnewton merged commit 003ff53 into ruby:main Feb 18, 2026
67 checks passed
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.

2 participants

Comments