Skip to content

Conversation

@Ybalrid
Copy link
Member

@Ybalrid Ybalrid commented Mar 6, 2025

Working directly with the generated bindings, it is generally useful to default-initialize c structures to zero.

This PR add a configuration value to bindgen that insert this behavior as an impl of the Default trait to generated types.

@Ybalrid Ybalrid assigned Ybalrid and Tsuguri and unassigned Tsuguri Mar 6, 2025
@Ybalrid Ybalrid requested a review from Tsuguri March 6, 2025 14:14
Copy link
Collaborator

@Tsuguri Tsuguri left a comment

Choose a reason for hiding this comment

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

Yeah. Totally makes sense.

@Ybalrid Ybalrid merged commit 61bd9f5 into master Mar 7, 2025
18 checks passed
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.

3 participants