Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions src/windy/platforms/macos/objc.nim
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import macros, strutils, typetraits

# Because we cast many of the ObjC functions to proc pointers, we get a warning.
# They used to be fine but they turned into errors, turn them into warnings again.
{.passC: "-Wno-incompatible-function-pointer-types".}

type
Class* = distinct int
ID* = distinct int
SEL* = distinct int
Protocol* = distinct int
IMP* = proc(self: ID, cmd: SEL): ID {.cdecl, varargs.}
## ObjC method implementation pointer. Treat as opaque to avoid strict
## signature checks across varying method shapes.
## Previously: IMP* = proc(self: ID, cmd: SEL): ID {.cdecl, varargs.}
IMP* = pointer
objc_super* = object
receiver*: ID
super_class*: Class
Expand Down