Skip to content

Possible for --with-attribute to allow for multiple = in args? #469

Closed
@kkukshtel

Description

@kkukshtel

Hello! Trying to annotate some output functions with an additional attribute, specifically:
UnmanagedCallersOnly(CallConvs = new[] { typeof(CallConvCdecl) })
or something similar.

However, no matter what I try to pass to --with-attribute this either doesn't work because the program expects a key/value(?) or it generates the proper bindings but there is no attribute output. I also looked into the TerraFX interop rsp examples where you bind to Flags but I'm still unclear on what that's doing/why attributes need a key/value configuration when I assume they should just be copy-pasted strings, as well as what the key/value would be in my case.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions