mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 07:08:48 +00:00
using Foo :: enum {A, B, C}; len(Foo)
This commit is contained in:
@@ -290,7 +290,6 @@ write_type :: proc(buf: ^String_Buffer, ti: ^runtime.Type_Info) {
|
||||
case runtime.Type_Info_Enum:
|
||||
write_string(buf, "enum ");
|
||||
write_type(buf, info.base);
|
||||
if info.is_export do write_string(buf, " #export");
|
||||
write_string(buf, " {");
|
||||
for name, i in info.names {
|
||||
if i > 0 do write_string(buf, ", ");
|
||||
|
||||
@@ -88,7 +88,7 @@ Type_Info_Enum :: struct {
|
||||
base: ^Type_Info,
|
||||
names: []string,
|
||||
values: []Type_Info_Enum_Value,
|
||||
is_export: bool,
|
||||
is_using: bool, // TODO(bill): Should this be in the `Type_Info`?
|
||||
};
|
||||
Type_Info_Map :: struct {
|
||||
key: ^Type_Info,
|
||||
|
||||
Reference in New Issue
Block a user