Skip to content

Improve generated extern "C" function signatures #639

@madsmtm

Description

@madsmtm
  • 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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frameworkAffects the framework crates and the translator for themenhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions