diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-07-20 23:57:56 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-07-20 23:57:56 +0100 |
| commit | dbddec33c8247beb5984d0c3fbcdf86a94054248 (patch) | |
| tree | 6f711915422e3a2b76013d4bf6d488ce1221d84e /core/fmt.odin | |
| parent | 401a5955a4ed1746e96f29db8e521cb4831a863d (diff) | |
Internal changes; thread.odin for windows only
Diffstat (limited to 'core/fmt.odin')
| -rw-r--r-- | core/fmt.odin | 6 |
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 { |