-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test cases for Option<&T> and fix rust codegen
Currently swift-bridge only has tests for Option<T> - this adds test cases for Option<&T> and fixes a bug in rust codegen that does not correctly translate Option<&T>. This is now possible: ```rust mod ffi { extern "Rust" { type MyStruct; fn my_func(arg: Option<&MyStruct>) -> Option<&MyStruct>; } } ```
- Loading branch information
Peter Farr
committed
Mar 14, 2024
1 parent
dd5bef5
commit 56e3981
Showing
4 changed files
with
218 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters