You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
objc: enable to treat structs for arguments and return values at RegisterClass callbacks #225
Here is my branch which has the code I've worked on to add struct return values in callbacks. It supports arm64 struct returns in callbacks (one test is skipped because of callback struct args). Amd64 isn't working properly at the moment. If someone has more time than I do and wants to finish this up that'd be great.
Activity
objc: support structs
objc: bug fix: wrong implementation in encodeType for a struct
objc: bug fix: wrong implementation in encodeType for a struct (#324)
TotallyGamerJet commentedon Mar 7, 2026
Here is my branch which has the code I've worked on to add struct return values in callbacks. It supports arm64 struct returns in callbacks (one test is skipped because of callback struct args). Amd64 isn't working properly at the moment. If someone has more time than I do and wants to finish this up that'd be great.
https://github.com/TotallyGamerJet/purego/tree/issue-225_structs2
hajimehoshi commentedon Mar 7, 2026
Thanks! Would it be possible to rebase this branch onto the current main?
EDIT: I think I've succeeded this https://github.com/hajimehoshi/purego/tree/issue-225-structs3
purego: support returning structs from callbacks
hajimehoshi commentedon Mar 8, 2026
@TotallyGamerJet I'll send a PR later soon based on your PR.
By the way, we need another work to accept structs at callbacks, right?
purego: support returning structs from callbacks
TotallyGamerJet commentedon Mar 8, 2026
Yes, that's correct
purego: support returning structs from callbacks
purego: support returning structs from callbacks
purego: support returning structs from callbacks (#436)
purego: support struct arguments in callbacks
purego: support struct arguments in callbacks
purego: support struct arguments in callbacks
purego: support struct arguments in callbacks (#437)
hajimehoshi commentedon Mar 11, 2026
Now the implementations were merged, I'll try to see how well the Objective-C API works. I'll close the issue if this works
TotallyGamerJet commentedon Apr 10, 2026
@hajimehoshi I believe this can be marked as completed
NewCallback) #418 as a duplicate of this issue