mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-03 10:57:15 -04:00
Switch from now removed context.stdout/stderr to os.stdout/stderr
This commit is contained in:
1 parent
b98a4c6d69
commit
a6c8dcdd21
1 file changed
+1
-1
@@ -64,7 +64,7 @@ file_console_logger_proc :: proc(logger_data: rawptr, level: Level, text: string
|
||||
data := cast(^File_Console_Logger_Data)logger_data;
|
||||
h : os.Handle;
|
||||
if(data.file_handle != os.INVALID_HANDLE) do h = data.file_handle;
|
||||
else do h = context.stdout if level <= Level.Error else context.stderr;
|
||||
else do h = os.stdout if level <= Level.Error else os.stderr;
|
||||
backing: [1024]byte; //NOTE(Hoej): 1024 might be too much for a header backing, unless somebody has really long paths.
|
||||
buf := strings.builder_from_slice(backing[:]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user