Skip to content

Generate structs.h as C code (not C++) #1064

Description

@thisisrandy

Is your feature request related to a problem? Please describe.
Following the advice in #228, I'm trying to hook structs.h up to my native C code. However, structs.h is generated as C++ code, so every file where I include it now needs to also be C++, and the problem cascades.

Describe the solution you'd like
Just like e.g. vars.h, structs.h should be valid C code (C11, specifically).

Describe alternatives you've considered
The only real alternative I see is to convert a good chunk of my codebase to C++. The difficulty of this is exacerbated by the fact that much of my native code is generated by STM32CubeMX.

In the meantime I can just not use structs, but my project will take a huge organizational hit if I have to do everything with primitives.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions