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:
@@ -5,6 +5,8 @@ import "base:runtime"
|
||||
import "core:slice"
|
||||
import win32 "core:sys/windows"
|
||||
|
||||
_Platform_Error :: win32.System_Error
|
||||
|
||||
_error_string :: proc(errno: i32) -> string {
|
||||
e := win32.DWORD(errno)
|
||||
if e == 0 {
|
||||
@@ -68,4 +70,4 @@ _get_platform_error :: proc() -> Error {
|
||||
// fallthrough
|
||||
}
|
||||
return Platform_Error(err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user