Skip to content

C and C++ in same header file? #811

@vanillajonathan

Description

@vanillajonathan

In other C files I've seen things like:

#ifdef __cplusplus
extern "C" {
#endif

void hello_world(char *greeting);

#ifdef __cplusplus
}
#endif

Example: https://github.com/xiallc/PixieSDK/blob/master/sdk/include/pixie16/pixie16.h

Maybe cbindgen could do that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions