@@ -333,7 +333,7 @@ foreign dl {
@(link_name="dlerror") _unix_dlerror :: proc() -> cstring ---
}
-get_last_error :: proc() -> int {
+get_last_error :: proc "contextless" () -> int {
return __error()^
@@ -303,7 +303,7 @@ is_path_separator :: proc(r: rune) -> bool {
return r == '/'
return __errno_location()^
@@ -441,7 +441,7 @@ _get_errno :: proc(res: int) -> Errno {
// get errno from libc
@@ -294,7 +294,7 @@ is_path_separator :: proc(r: rune) -> bool {
return __errno()^