mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Use __type_info_of internally
This commit is contained in:
+2
-4
@@ -755,8 +755,7 @@ fmt_value :: proc(fi: ^Fmt_Info, v: any, verb: rune) {
|
||||
write_string(fi.buf, "any{}");
|
||||
} else {
|
||||
data := rawptr(uintptr(v.data) + b.offsets[i]);
|
||||
id := typeid_of(t);
|
||||
fmt_arg(fi, any{data, id}, 'v');
|
||||
fmt_arg(fi, any{data, typeid_of(t)}, 'v');
|
||||
}
|
||||
|
||||
if hash do write_string(fi.buf, ",\n");
|
||||
@@ -884,8 +883,7 @@ fmt_value :: proc(fi: ^Fmt_Info, v: any, verb: rune) {
|
||||
write_string(fi.buf, "any{}");
|
||||
} else {
|
||||
data := uintptr(v.data) + info.offsets[i];
|
||||
id := typeid_of(t);
|
||||
fmt_arg(fi, any{rawptr(data), id}, 'v');
|
||||
fmt_arg(fi, any{rawptr(data), typeid_of(t)}, 'v');
|
||||
}
|
||||
if hash do write_string(fi.buf, ",\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user