Mitchell Hashimoto
23a0e72227
re-enable fixed test from upstream zig issue
2024-11-04 09:41:29 -08:00
Mitchell Hashimoto
7e1acc8a45
Merge pull request #10 from emilazy/push-ozupmymvlkqn
...
iterator: support iteration using `NSFastEnumeration`
2024-11-03 15:19:25 -08:00
Mitchell Hashimoto
31632abc24
some small tweaks, mostly subjective
2024-11-03 15:16:45 -08:00
Emily
e1c328f647
iterator: support iteration using NSFastEnumeration
...
Implement the consumer side of the `NSFastEnumeration` protocol,
matching the compilation scheme used by Clang for Objective‐C
`for…in` loops.
2024-11-03 15:10:13 -08:00
Emily
1b736ace69
.gitignore: ignore direnv files
2024-11-03 15:10:13 -08:00
Mitchell Hashimoto
962941d291
README
2024-11-03 15:09:40 -08:00
Mitchell Hashimoto
a708e543be
ci: get rid of zig cache dirs
2024-11-03 15:08:31 -08:00
Mitchell Hashimoto
b574084c71
ci: macos doesn't support cache
2024-11-03 15:03:15 -08:00
Mitchell Hashimoto
6c27e39849
ci: use a namespace cache
2024-11-03 15:02:21 -08:00
Mitchell Hashimoto
95b4ddcdb1
build: use apple sdk from xcode
2024-11-03 15:00:58 -08:00
Mitchell Hashimoto
fe5ac41953
update deps for 0.13
2024-06-08 20:12:47 -07:00
Mitchell Hashimoto
0d9ad4a9fe
update to zig 0.13
2024-06-08 19:57:59 -07:00
Mitchell Hashimoto
9e2174ed9b
Merge pull request #8 from ryleelyman/main
...
Build.zig tweaks, zig breakage fixes
2024-04-12 10:30:32 -07:00
Mitchell Hashimoto
c9dc8d2505
update zig
2024-04-12 10:30:21 -07:00
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
Rylee Lyman
77bb670be5
feat: add add-paths
option; link needed frameworks
2024-04-12 09:44:18 +01:00
Mitchell Hashimoto
ae1ba3e1a7
update zig
2024-03-27 21:21:48 -07: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
f6ed382b6d
msgSend on x86_64 supports enums
2024-01-16 10:20:56 -08:00
Mitchell Hashimoto
294e0f3765
Merge pull request #6 from ritalin/main
...
Supports retain/release for Object.
2024-01-05 20:43:13 -08:00
Mitchell Hashimoto
56dc708c7a
style changes
2024-01-05 20:43:01 -08:00
Mitchell Hashimoto
f87ab50709
Merge pull request #7 from der-teufel-programming/main
...
Update to latest master after Zig PR #18160
2024-01-05 20:37:57 -08:00
Mitchell Hashimoto
9c45d36673
change pointer type to workaround zig bug
2024-01-05 20:34:36 -08:00
Mitchell Hashimoto
3f92c2dbde
update zig
2024-01-05 19:25:16 -08:00
Krzysztof Wolicki
94b2a0056a
Update to latest master after Zig PR #18160
2024-01-06 03:42:07 +01:00
Ritalin
74dc09dda8
Add method comment
2023-12-30 23:00:49 +09:00
Ritalin
353986763c
Supports retain/release for Object.
2023-12-30 22:43:35 +09:00
Mitchell Hashimoto
10e552bd37
update zig
2023-11-20 19:30:16 -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
b8d5546db2
Merge pull request #4 from ryleelyman/upstream
...
fix!: `addMethod` now passes errors it receives; added test
2023-10-21 10:29:48 -07:00
Mitchell Hashimoto
337ec0a630
handle i8/bool result in ci
2023-10-21 10:24:50 -07:00
Mitchell Hashimoto
87aae5f5ad
add dedicated encoder, use writer, support comptime encoding
2023-10-21 10:21:13 -07:00
Mitchell Hashimoto
cec54ac452
Revert "fix: convert addMethod
bool to zig error"
...
This reverts commit 3607c36967
.
2023-10-21 08:50:43 -07:00
Rylee Lyman
3607c36967
fix: convert addMethod
bool to zig error
2023-10-21 08:58:19 -04:00
Rylee Lyman
bca05e03d3
fix!: addMethod
now passes errors it receives; added test
2023-10-21 08:51:58 -04:00
Mitchell Hashimoto
98597c6903
update README for new API
2023-10-20 22:50:33 -07:00
Mitchell Hashimoto
4b54a6fad5
update README
2023-10-20 22:43:44 -07:00
Mitchell Hashimoto
84fe0accc2
Merge pull request #3 from ryleelyman/objective-c-calling-zig
...
feat: implement Objective-C calling Zig
2023-10-20 22:27:19 -07:00
Mitchell Hashimoto
77b9ccfe04
more Ziggy blocks
2023-10-20 22:19:40 -07:00
Mitchell Hashimoto
25194cfc23
msgSend/msgSendSuper can accept anytype for sel to accept strings
2023-10-20 20:48:11 -07:00
Mitchell Hashimoto
75ae7627cb
share a lot more logic for msgSend/msgSendSuper
2023-10-20 20:45:04 -07:00
Mitchell Hashimoto
1179c94083
MsgSendFn can construct the proper type for msgSendSuper
2023-10-20 20:28:19 -07:00
Mitchell Hashimoto
24be26c3a7
ci: use macos tester
2023-10-20 15:54:57 -07:00
Mitchell Hashimoto
7110b7c5f2
fix return type mismatch when cross-compiling with macos sdk
2023-10-20 15:51:23 -07:00
Mitchell Hashimoto
e94d728f47
minor stylistic tweaks
2023-10-20 15:46:16 -07:00
Rylee Lyman
8c434525fe
fix: addMethod
should correctly process strings
2023-10-20 15:37:37 -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