mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
Move helper procs into utility.odin
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package text_table
|
||||
|
||||
import "core:io"
|
||||
import "core:os"
|
||||
import "core:strings"
|
||||
|
||||
stdio_writer :: proc() -> io.Writer {
|
||||
return io.to_writer(os.stream_from_handle(os.stdout))
|
||||
}
|
||||
|
||||
strings_builder_writer :: proc(b: ^strings.Builder) -> io.Writer {
|
||||
return strings.to_writer(b)
|
||||
}
|
||||
Reference in New Issue
Block a user