aboutsummaryrefslogtreecommitdiff
path: root/base/runtime
diff options
context:
space:
mode:
authorHarold Brenes <harold@hbrenes.com>2025-09-30 14:15:14 -0400
committerHarold Brenes <harold@hbrenes.com>2025-09-30 14:16:43 -0400
commit2daaf57ad1f0b0cd166704f808736ddf7f603e23 (patch)
treee91fed43d15cf66ba559153868ee99fa1c446b6f /base/runtime
parentfc44b104315ddac114ae756f5d3f1ed236636782 (diff)
Correct signature (missing return value) for `objc_msgSendSuper2`
Diffstat (limited to 'base/runtime')
-rw-r--r--base/runtime/procs_darwin.odin4
1 files changed, 3 insertions, 1 deletions
diff --git a/base/runtime/procs_darwin.odin b/base/runtime/procs_darwin.odin
index cc3dabc9b..0ffe68e49 100644
--- a/base/runtime/procs_darwin.odin
+++ b/base/runtime/procs_darwin.odin
@@ -29,7 +29,9 @@ foreign ObjC {
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) ---
- objc_msgSendSuper2 :: proc "c" (super: ^objc_super, op: objc_SEL, #c_vararg args: ..any) ---
+
+ // See: https://github.com/opensource-apple/objc4/blob/cd5e62a5597ea7a31dccef089317abb3a661c154/runtime/objc-abi.h#L111
+ objc_msgSendSuper2 :: proc "c" (super: rawptr, op: objc_SEL, #c_vararg args: ..any) -> objc_id ---
objc_msgSendSuper2_stret :: proc "c" (super: ^objc_super, op: objc_SEL, #c_vararg args: ..any) ---