Skip to content

[3.0] Improve and polish bindings generator#2587

Draft
Exanite wants to merge 17 commits into
feature/generator-docsfrom
feature/generator-fixes-and-polish
Draft

[3.0] Improve and polish bindings generator#2587
Exanite wants to merge 17 commits into
feature/generator-docsfrom
feature/generator-fixes-and-polish

Conversation

@Exanite

@Exanite Exanite commented Jun 7, 2026

Copy link
Copy Markdown
Member

Summary of the PR

(WIP)

This will be merged into #2578 and focuses on polishing up the generator, specifically focusing on the issues that I discovered while writing the generator documentation and any other minor generator improvements I decide to include into this PR.

Related issues, Discord discussions, or proposals

Generator documentation PR: #2578

Further Comments

Tasks

  • Issues to address from generator documentation PR
    • ExtractNestedTyping constant extraction does not handle nor rewrite fields that are typed as a predefined type, but are natively typed as an enum (test case: SuccessfullyExtractsCStyleEnumConstants_Field)
    • ExtractNestedTyping constant extraction does not handle nor rewrite return types that are typed as a predefined type, but are natively typed as an enum (test case: SuccessfullyExtractsCStyleEnumConstants_ReturnType)
    • ExtractNestedTyping does not annotate extracted enums with the [NativeName] attribute. Eg: SDL_BlendMode.
    • Consider making it so that handle types implement the IEquatable<T> interface.
  • Update docs
  • Update test cases
  • Regenerate using Windows for consistency and to ensure no unwanted changes

@Exanite Exanite changed the base branch from develop/3.0 to feature/generator-docs June 7, 2026 23:51
@Exanite Exanite changed the title [3.0] Fix and polish bindings generator [3.0] Improve and polish bindings generator Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant