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
Mitchell Hashimoto
0b75865239
link CoreFoundation for tests
...
Fixes #2
2023-10-20 15:36:55 -07:00
Mitchell Hashimoto
e8686c3457
Revert "remove failing tests for macOS Sonoma"
...
This reverts commit 0d3a6d4b58
.
2023-10-20 15:36:04 -07:00
Mitchell Hashimoto
0d3a6d4b58
remove failing tests for macOS Sonoma
...
Annoying, these functions do work in the right situation but some are
failing due to macOS SDK changes.
2023-10-20 15:35:29 -07:00
Mitchell Hashimoto
146a50bb01
update macos-sdk
2023-10-17 13:10:34 -07:00
Mitchell Hashimoto
f837bfaa37
depend on macos sdk not on xcode frameworks
2023-10-17 12:40:34 -07:00
Mitchell Hashimoto
01c16aaeeb
use zig package manager
2023-08-03 16:54:20 -07:00
Mitchell Hashimoto
51584a2f78
update zig
2023-06-30 09:49:12 -07:00
Mitchell Hashimoto
1e3537ab97
change mach vendor
2023-04-06 09:00:38 -07:00
Mitchell Hashimoto
fa7be5173c
update mach
2023-04-04 10:25:50 -07:00
Mitchell Hashimoto
49593794da
fallback get/setProperty if the class doesn't formally declare the prop
2023-03-20 14:43:32 -07:00
Mitchell Hashimoto
079d8eb420
update to latest Zig, new for loops
2023-02-27 21:41:58 -08:00