-
Notifications
You must be signed in to change notification settings - Fork 62
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 (#257)
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 SomeType; fn my_func(arg: Option<&SomeType>) -> Option<&SomeType>; } } ```
- Loading branch information
1 parent
dd5bef5
commit 53b118d
Showing
4 changed files
with
217 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