cl-bindgen
cl-bindgen copied to clipboard
Nested anonymous records cause cl-bindgen to crash
Structs like
struct foo {
enum type flag;
union {
int a;
double b;
};
};
Cause an assertion error originating here: https://github.com/sdilts/cl-bindgen/blob/920df4cfa5e72c17c3722eda262a0936c9789b11/cl_bindgen/processfile.py#L210-L213
Here's what the C spec says on nested unions: https://en.cppreference.com/w/c/language/union