aboutsummaryrefslogtreecommitdiff
path: root/core/fmt.odin
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-07-20 23:57:56 +0100
committerGinger Bill <bill@gingerbill.org>2017-07-20 23:57:56 +0100
commitdbddec33c8247beb5984d0c3fbcdf86a94054248 (patch)
tree6f711915422e3a2b76013d4bf6d488ce1221d84e /core/fmt.odin
parent401a5955a4ed1746e96f29db8e521cb4831a863d (diff)
Internal changes; thread.odin for windows only
Diffstat (limited to 'core/fmt.odin')
-rw-r--r--core/fmt.odin6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/fmt.odin b/core/fmt.odin
index c8723f6c4..3d16e309c 100644
--- a/core/fmt.odin
+++ b/core/fmt.odin
@@ -7,6 +7,7 @@ import (
"raw.odin";
)
+
_BUFFER_SIZE :: 1<<12;
StringBuffer :: union {
@@ -749,6 +750,11 @@ fmt_value :: proc(fi: ^FmtInfo, v: any, verb: rune) {
fmt_bad_verb(fi, verb);
return;
}
+ if b.is_raw_union {
+ write_string(fi.buf, info.name);
+ write_string(fi.buf, "{}");
+ return;
+ }
write_string(fi.buf, info.name);
write_byte(fi.buf, '{');
for _, i in b.names {