mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-03 22:28:46 +00:00
Begin mapping os.Error in the rest of the codebase
This commit is contained in:
@@ -520,6 +520,7 @@ _get_errno :: proc(res: int) -> Error {
|
||||
}
|
||||
|
||||
// get errno from libc
|
||||
@(require_results, no_instrumentation)
|
||||
get_last_error :: proc "contextless" () -> Error {
|
||||
err := Platform_Error(__errno_location()^)
|
||||
#partial switch err {
|
||||
|
||||
Reference in New Issue
Block a user