Switch from now removed context.stdout/stderr to os.stdout/stderr

This commit is contained in:
Mikkel Hjortshoej
2020-03-28 14:13:47 +01:00
parent b98a4c6d69
commit a6c8dcdd21

View File

@@ -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[:]);