Skip to content

Support for disabled runtime marshalling #458

Closed
@alexrp

Description

@alexrp

https://learn.microsoft.com/en-us/dotnet/standard/native-interop/disabled-marshalling

There was some discussion on this topic in #428; I figured I'd open this issue to track support for this feature.

The bool issue in particular is one that I'm running into with a library that I'm generating bindings for. I am using [assembly: DisableRuntimeMarshalling] so it's a bit unfortunate that the P/Invoke signatures end up using byte. (Perhaps also worth noting that remapping with --remap _Bool=bool and/or --remap bool=bool as a hacky workaround isn't possible.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions