Skip to content

Conversation

@madsodgaard
Copy link
Contributor

@madsodgaard madsodgaard commented May 26, 2025

  • Moves the ValueLayout constants from the generated code to SwiftKit instead.
  • Also removes the unused C constants.
  • The generated code now correctly uses 32 or 64 bit int for Int type, based on platform.

Fixes #231

Copy link
Collaborator

@ktoso ktoso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice cleanup, lgtm :-)

@ktoso ktoso merged commit 00df828 into swiftlang:main May 26, 2025
12 checks passed
@madsodgaard madsodgaard deleted the move-layout-constants branch May 26, 2025 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove constant duplication in jextract generated code

2 participants