Closed detly closed 3 years ago
I have a PR coming that turns the generated C code into:
struct A {
enum A_which which;
capnp_nowarn union {
capnp_nowarn struct {
enum A_one_which which;
capnp_nowarn union {
uint16_t second;
};
} one;
};
};
For this schema:
I get this C code:
The
one_which
member is in a union alongsideone
, which means assigning toone.second
will overwriteone_which
.