Skip to content

Make default C headers C++ compatible #230

@BrianSipos

Description

@BrianSipos

When lakers-c headers are generated by the cbindgen tool they currently are strictly C compatible, meaning cannot be linked to with C++. But there is a cbindgen option cpp_compat which enables C++ compatibility in a way which can still be C compatible.

The default lakers configuration in cbindgen.toml should include this option in the top-level group:

cpp_compat = true

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions