Skip to content

Commit

Permalink
Fix msg_send_super.
Browse files Browse the repository at this point in the history
  • Loading branch information
dboris committed May 8, 2024
1 parent b71e871 commit a1514fb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions runtime/runtime.ml
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,14 @@ struct
(** Sends a message with a simple return value to the superclass
of an instance of a class. *)
let msg_send_super ~self ~cmd ~typ =
match Platform.current with
let self = Class.get_superclass self in
msg_send ~self ~cmd ~typ
(* match Platform.current with
| GNUStep ->
let self = Class.get_superclass self in
msg_send ~self ~cmd ~typ
| _ ->
foreign "objc_msgSendSuper" (id @-> _SEL @-> typ) self cmd
foreign "objc_msgSendSuper" (id @-> _SEL @-> typ) self cmd *)
;;

(** Shortcut for type [void @-> id] *)
Expand Down

0 comments on commit a1514fb

Please sign in to comment.