Commit graph

11 commits

Author SHA1 Message Date
Rylee Lyman
8113ef70e0 fix!: avoid "comptime var" error by returning array instead of slice
this changes the semantics of `comptimeEncode`; users will need to,
e.g. use

```zig
const encoding = comptimeEncode(T);
passToObjc(&encoding)
```

to pass the encoding by pointer rather than by value.
2024-04-12 10:01:04 +01:00
Mitchell Hashimoto
0a89cc09da
update zig 2024-03-22 11:05:40 -07:00
Mitchell Hashimoto
83a52ce8e3
update to latest zig 2024-03-13 09:12:10 -07:00
Mitchell Hashimoto
9c45d36673
change pointer type to workaround zig bug 2024-01-05 20:34:36 -08:00
Mitchell Hashimoto
a38331cb6e
block: descriptor can be statically allocated 2023-10-21 11:31:45 -07:00
Mitchell Hashimoto
38835ef322
block: we don't need to free the signature anymore, its static 2023-10-21 11:23:02 -07:00
Mitchell Hashimoto
62bcb951b8
block: only free the descriptor once 2023-10-21 11:22:44 -07:00
Mitchell Hashimoto
87aae5f5ad
add dedicated encoder, use writer, support comptime encoding 2023-10-21 10:21:13 -07:00
Mitchell Hashimoto
77b9ccfe04
more Ziggy blocks 2023-10-20 22:19:40 -07:00
Mitchell Hashimoto
e94d728f47
minor stylistic tweaks 2023-10-20 15:46:16 -07:00
Rylee Lyman
83156e7e6d
feat: implement Objective-C calling Zig
feat: add `msgSendSuper`
feat: add protocols,
feat: add `allocateClasspair` and `replaceMethod`
feat: add ivars,
feat: add `addMethod`
feat: add blocks
2023-10-20 15:37:37 -07:00