mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-31 20:00:09 +00:00
Clean up package log code
This commit is contained in:
+3
-1
@@ -1007,7 +1007,9 @@ fmt_enum :: proc(fi: ^Info, v: any, verb: rune) {
|
||||
fmt_arg(fi, any{v.data, runtime.type_info_base(e.base).id}, verb);
|
||||
case 's', 'v':
|
||||
str, ok := enum_value_to_string(v);
|
||||
if !ok do str = "!%(BAD ENUM VALUE)";
|
||||
if !ok {
|
||||
str = "!%(BAD ENUM VALUE)";
|
||||
}
|
||||
strings.write_string(fi.buf, str);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user