Skip to content

Module/symbol externs #36

Description

@philpax

Similarly to ferrobrew/re-utilities#10, we could allow specifying externs in other modules, so that you could do (with some overlap with #27)

#[module = "MSVCP80", symbol = "??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ"]
extern fn string_ctor_default(*mut StdString) -> *mut void;

This seems likely to require a bit more runtime support, though (lazy-fetching of the function, etc).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions