Begin mapping os.Error in the rest of the codebase
This commit is contained in:
1 parent
1d75a612d5
commit
97c499dbb4
18 files changed
+231
-222
No files matched your search
@@ -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