zig/doc/langref/enum_export.zig

5 lines
89 B
Zig

const Foo = enum(c_int) { a, b, c };
export fn entry(foo: Foo) void { _ = foo; }
// obj