Skip to content

Should use extern "system" as much as possible #3626

@Berrysoft

Description

@Berrysoft

Suggestion

extern "system" is designed for Windows API, which uses "stdcall" on x86 and "C" on other archs. windows_targets::link now distinguishes them again. It becomes very annoying because previously I use unsafe extern "system" fn function pointers to store some windows APIs but now they become "C" on non-x86. I don't get the point why you distinguish them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions