Clean up package log code

This commit is contained in:
gingerBill
2020-06-19 11:18:23 +01:00
parent 2a684830f9
commit 9f596d6f34
4 changed files with 142 additions and 144 deletions
+3 -1
View File
@@ -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);
}
}