Skip to content

[ffigen] Document C++ best practices #2743

@goderbauer

Description

@goderbauer

C++ doesn't have a stable ABI, so direct interop isn't possible. Instead you should make a wrapper C API using extern "C".

There's a proposal to write a tool to autogenerate this wrapper, which we hope someone from the community would like to take on: #2644

In any case, we should document how to handle C++ somewhere in the ffigen docs.

cc @liamappelbe

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions