Skip to content

Native function link name should be an attribute #906

Closed
@brson

Description

@brson

Instead of

    fn close(fd: int) -> int = "_close";

we should write

    #[link_name = "_close"]
    fn close(fd: int) -> int;

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions