Skip to content

allow default-initialization of C structures from openvr_capi #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 7, 2025

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.

2 participants