mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Use log.error instead of eprintf
This commit is contained in:
@@ -11,6 +11,7 @@ package text_table
|
|||||||
|
|
||||||
import "core:io"
|
import "core:io"
|
||||||
import "core:fmt"
|
import "core:fmt"
|
||||||
|
import "core:log"
|
||||||
import "core:mem"
|
import "core:mem"
|
||||||
import "core:mem/virtual"
|
import "core:mem/virtual"
|
||||||
import "core:unicode/utf8"
|
import "core:unicode/utf8"
|
||||||
@@ -113,7 +114,7 @@ to_string :: #force_inline proc(tbl: ^Table, value: any, loc := #caller_location
|
|||||||
case:
|
case:
|
||||||
result = format(tbl, "%v", val)
|
result = format(tbl, "%v", val)
|
||||||
if result == "" {
|
if result == "" {
|
||||||
fmt.eprintf("{} text/table: format() resulted in empty string (arena out of memory?)\n", loc)
|
log.error("text/table.format() resulted in empty string (arena out of memory?)", location = loc)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user