mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 16:18:52 +00:00
os2: make platform error more ergonomic by making it an alias
This commit is contained in:
@@ -4,6 +4,8 @@ package os2
|
||||
|
||||
import "core:sys/posix"
|
||||
|
||||
_Platform_Error :: posix.Errno
|
||||
|
||||
_error_string :: proc(errno: i32) -> string {
|
||||
return string(posix.strerror(posix.Errno(errno)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user