Expect stream as a field directly on os2.File

This commit is contained in:
gingerBill
2024-03-13 16:30:22 +00:00
parent 5f2496226f
commit 271f84ab5b
4 changed files with 13 additions and 16 deletions
+2 -2
View File
@@ -4,8 +4,8 @@ import "core:io"
to_stream :: proc(f: ^File) -> (s: io.Stream) {
if f != nil {
assert(f.impl.stream.procedure != nil)
s = f.impl.stream
assert(f.stream.procedure != nil)
s = f.stream
}
return
}