mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-29 01:14:40 +00:00
Switch from now removed context.stdout/stderr to os.stdout/stderr
This commit is contained in:
@@ -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