-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavior
Description
Zig Version
0.14.0-dev.1320+492cc2ef8
Steps to Reproduce and Observed Behavior
Given the following header:
// header.h
enum MyEnum {
MyEnumValue,
};zig translate-c header.h produces the following output:
// -snip-
pub const MyEnumValue: c_int = 0;
pub const enum_MyEnum = c_uint;
// -snip-
pub const MyEnum = enum_MyEnum;Expected Behavior
@TypeOf(MyEnumValue) should equal MyEnum.
In particular, I would have expected MyEnum to be c_int as well.
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behavior