mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Begin converting os.Errno to be a nil-able type as a transition period
This commit is contained in:
@@ -13,6 +13,12 @@ SEEK_SET :: 0
|
||||
SEEK_CUR :: 1
|
||||
SEEK_END :: 2
|
||||
|
||||
Platform_Error :: _Platform_Error
|
||||
Error :: Platform_Error
|
||||
Errno :: Error // alias
|
||||
|
||||
ERROR_NONE :: Errno(0)
|
||||
|
||||
write_string :: proc(fd: Handle, str: string) -> (int, Errno) {
|
||||
return write(fd, transmute([]byte)str)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user