diff --git a/core/runtime/print.odin b/core/runtime/print.odin index 88e8c9d9e..53ce34aa4 100644 --- a/core/runtime/print.odin +++ b/core/runtime/print.odin @@ -42,6 +42,18 @@ print_string :: proc "contextless" (str: string) -> (int, _OS_Errno) { return os_write(transmute([]byte)str); } +print_strings :: proc "contextless" (args: ..string) -> (n: int, err: _OS_Errno) { + for str in args { + m: int; + m, err = os_write(transmute([]byte)str); + n += m; + if err != nil { + break; + } + } + return; +} + print_byte :: proc "contextless" (b: byte) -> (int, _OS_Errno) { return os_write([]byte{b}); }