Skip to content

Commit

Permalink
Improve to_selector.
Browse files Browse the repository at this point in the history
  • Loading branch information
dboris committed Nov 3, 2024
1 parent 7ffd45a commit 6b60b0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runtime/runtime.ml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ let selector = Sel.register_name
(** Returns the selector name as string. *)
let string_of_selector = Sel.get_name

let to_selector = coerce (ptr void) _SEL
let to_selector p =
to_voidp p |> coerce (ptr void) _SEL

module Objc = struct
include C.Functions.Objc
Expand Down

0 comments on commit 6b60b0e

Please sign in to comment.