Skip to content
This repository was archived by the owner on Jan 28, 2024. It is now read-only.

Commit 0b68594

Browse files
authored
Support for passing/returning Structs by value. (#134)
* Added support for structs by value, fixed tests and example * updated version, readme, changelog * Added more tests * Added struct return by value to native test * Fix struct by value in nested typedefs
1 parent 9c7d0b2 commit 0b68594

File tree

15 files changed

+15718
-5154
lines changed

15 files changed

+15718
-5154
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 2.0.0-dev.1
2+
- Added support for passing and returning struct by value in functions.
3+
14
# 2.0.0-dev.0
25
- Added support for Nested structs.
36

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,6 @@ class ArrayHelper_CXFileUniqueID_data_level0 {
377377

378378
## Limitations
379379
1. Multi OS support for types such as long. [Issue #7](https://github.com/dart-lang/ffigen/issues/7)
380-
2. Function's passing/returning structs by value are skipped. [Issue #3](https://github.com/dart-lang/ffigen/issues/3)
381-
3. Structs containing structs will have all their members removed. [Issue #4](https://github.com/dart-lang/ffigen/issues/4)
382380

383381
## Trying out examples
384382
1. `cd examples/<example_u_want_to_run>`, Run `pub get`.

0 commit comments

Comments
 (0)