Skip to content

Swift bindgen  #420

@adamnemecek

Description

@adamnemecek

I'm considering adding a language option to cbindgen for Swift.

The Swift compiler lets you include a C header which, when annotated with the CF_SWIFT_NAME macro exposes the C code to Swift code as Swift (so that one doesn't need to for example explicitly pass self/this to functions, similarly as with C++ cbindgen).

Here's more info
https://developer.apple.com/documentation/swift/objective-c_and_c_code_customization/customizing_your_c_code_for_swift

Is there any interest in this feature?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions