Make os.get_last_error contextless

This commit is contained in:
gingerBill committed 2022-12-08 16:04:03 +00:00
1 parent b8eacfc7b6
commit ffe953b43d
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -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()^
}