Skip to content

Comments

add extern "C" wrapping to rbs.h when using C++#2855

Open
froydnj wants to merge 1 commit intoruby:masterfrom
froydnj:froydnj-cplusplus-extern-c
Open

add extern "C" wrapping to rbs.h when using C++#2855
froydnj wants to merge 1 commit intoruby:masterfrom
froydnj:froydnj-cplusplus-extern-c

Conversation

@froydnj
Copy link

@froydnj froydnj commented Feb 19, 2026

For C++ clients of C libraries, it's nice if the library detects the need for extern "C" wrapping, so that the client doesn't have to continually add extern "C" blocks around the relevant #includes.

I opted to only add the wrapping around one header, rather than all the headers in the project; it seems unlikely that a client would need/want to include something other than rbs.h.

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.

1 participant