Skip to content

Automatically added structures. #520

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mannprerak2 opened this issue Jul 6, 2020 · 1 comment
Closed

Automatically added structures. #520

mannprerak2 opened this issue Jul 6, 2020 · 1 comment

Comments

@mannprerak2
Copy link
Contributor

Should we automatically add a Struct if it's used in a function?

Currently, a Struct is auto-added even when the user filter's out a Struct if it is a dependency of a function(i.e function returns/passes struct in some way).

Note: To support #539 we need to not auto add a structure.

@mannprerak2
Copy link
Contributor Author

Closing this now.

  1. Structs are always added if used as a dependency.
  2. if structs->dependency-only is set to opaque. Structs which are referred to with only via pointers are generated as opaque.

@liamappelbe liamappelbe transferred this issue from dart-archive/ffigen Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants