Skip to content

Remove C-wrapper and use direct C++ to Swift 5.9 interop. - #11

Open
jsbakker wants to merge 2 commits into
mainfrom
swift-cpp-interop-direct
Open

Remove C-wrapper and use direct C++ to Swift 5.9 interop.#11
jsbakker wants to merge 2 commits into
mainfrom
swift-cpp-interop-direct

Conversation

@jsbakker

@jsbakker jsbakker commented Jul 8, 2026

Copy link
Copy Markdown
Owner

The Xcode project settings have been updated to Swift 6 since first creating this project. Starting with Swift 5.9, it is possible to have direct C++ to Swift interop.

We no longer require the C-wrapper for WebCpp's Driver class, using void pointer for the Driver reference and UnsafeMutablePointer for string casting.

Less is more.

@jsbakker jsbakker self-assigned this Jul 8, 2026
@jsbakker

jsbakker commented Aug 15, 2026

Copy link
Copy Markdown
Owner Author

Holding off on this, as it requires consumers of the framework to also add Xcode settings on the compile target (SWIFT_OBJC_INTEROP_MODE = objcxx;), which is not very discoverable.

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