Skip to content
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

Improve generated extern "C" function signatures #639

Open
madsmtm opened this issue Jul 14, 2024 · 0 comments
Open

Improve generated extern "C" function signatures #639

madsmtm opened this issue Jul 14, 2024 · 0 comments
Labels
A-framework Affects the framework crates and the translator for them enhancement New feature or request
Milestone

Comments

@madsmtm
Copy link
Owner

madsmtm commented Jul 14, 2024

  • Allow marking functions as safe.
  • Convert bool to/from Bool.
  • Convert *mut T in return types to Option<Retained<T>> (using either Retained::retain_autoreleased or Retained::from_raw depending on the memory management rules of the function).

See also #638 (comment).

@madsmtm madsmtm added enhancement New feature or request A-framework Affects the framework crates and the translator for them labels Jul 14, 2024
@madsmtm madsmtm added this to the objc2 v0.6 milestone Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-framework Affects the framework crates and the translator for them enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant