Added Foundation bindings

This commit is contained in:
Samuel Elgozi
2025-01-17 10:42:32 +02:00
parent 16eca1ded1
commit 19d6c01f0f
9 changed files with 136 additions and 0 deletions
+4
View File
@@ -25,6 +25,10 @@ Block_createLocalWithParam :: proc (user_data: rawptr, user_proc: proc "c" (user
b, _ := Block_createInternalWithParam(false, user_data, user_proc, {})
return b
}
@(objc_type = Block, objc_name = "invoke")
Block_invoke :: proc "c" (self: ^Block, args: ..any) -> ^Object {
return msgSend(^Object, self, "invoke:", ..args)
}
@(private)
Internal_Block_Literal_Base :: struct {