Improve foreign variable fuzzy type checking

This commit is contained in:
gingerBill
2024-01-28 23:35:01 +00:00
parent 6da82e038d
commit 3c47503780
4 changed files with 6 additions and 4 deletions
+2 -1
View File
@@ -4,9 +4,10 @@ package runtime
foreign import libc "system:c"
@(default_calling_convention="c")
foreign libc {
@(link_name="write")
_unix_write :: proc(fd: uintptr, buf: rawptr, size: int) -> int ---
_unix_write :: proc(fd: i32, buf: rawptr, size: int) -> int ---
__error :: proc() -> ^i32 ---
}
+1
View File
@@ -4,6 +4,7 @@ package runtime
foreign import libc "system:System.framework"
@(default_calling_convention="c")
foreign libc {
@(link_name="__stderrp")
_stderr: rawptr