Skip to content

Support for macro_rules! generated functions in csbindgen #112

@ilinchunjie

Description

@ilinchunjie

Problem Description

csbindgen currently cannot recognize functions generated through macro_rules! macros, preventing these functions from being included in the generated C# binding code.

  • Manually written functions with #[unsafe(no_mangle)] attributes are correctly recognized and generated
  • Functions generated through macro_rules! macros (even with the same attributes) cannot be recognized
  • Generated C# binding files are missing numerous functions generated by macros

Environment Information

csbindgen version: 1.9.5
Rust version: 2024 edition

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