mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Add procs_darwin.odin
This commit is contained in:
@@ -0,0 +1,20 @@
|
|||||||
|
//+private
|
||||||
|
package runtime
|
||||||
|
|
||||||
|
foreign import "system:Foundation.framework"
|
||||||
|
|
||||||
|
import "core:intrinsics"
|
||||||
|
|
||||||
|
objc_id :: ^intrinsics.objc_object
|
||||||
|
objc_Class :: ^intrinsics.objc_class
|
||||||
|
objc_SEL :: ^intrinsics.objc_selector
|
||||||
|
|
||||||
|
foreign Foundation {
|
||||||
|
objc_lookUpClass :: proc "c" (name: cstring) -> objc_Class ---
|
||||||
|
sel_registerName :: proc "c" (name: cstring) -> objc_SEL ---
|
||||||
|
|
||||||
|
objc_msgSend :: proc "c" (self: objc_id, op: objc_SEL, #c_vararg args: ..any) ---
|
||||||
|
objc_msgSend_fpret :: proc "c" (self: objc_id, op: objc_SEL, #c_vararg args: ..any) -> f64 ---
|
||||||
|
objc_msgSend_fp2ret :: proc "c" (self: objc_id, op: objc_SEL, #c_vararg args: ..any) -> complex128 ---
|
||||||
|
objc_msgSend_stret :: proc "c" (self: objc_id, op: objc_SEL, #c_vararg args: ..any) ---
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user