Closed cathaysia closed 5 months ago
cbindgen will generate SnakeCase style tag for union currently, if it's possible generate CamelCase tag?
such as if we have:
typedef enum Foo_Tag { A, } Foo_Tag; typedef struct Foo { Foo_Tag tag; union { struct { float a[20]; }; }; } Foo; void root(struct Foo a);
I hope it can be:
typedef enum FooTag { A, } FooTag; typedef struct Foo { FooTag tag; union { struct { float a[20]; }; }; } Foo; void root(struct Foo a);
cbindgen will generate SnakeCase style tag for union currently, if it's possible generate CamelCase tag?
such as if we have:
I hope it can be: