Given the following C code:
// h.h
typedef enum E {
A,
B,
C
} E;
Zig translates this to
pub const A: c_int = 0;
pub const B: c_int = 1;
pub const C: c_int = 2;
pub const enum_E = c_uint;
pub const E = enum_E;
This is a correct translation, because enums in C aren’t namespaced, however I prefer enums to be namespaced for several reasons which I won’t get into here. Is there a way to get Zig to generate
pub const E = enum {
A,
B,
C,
};
instead?