Skip to content
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

Added all the predefined hint names #114

Merged
merged 2 commits into from
Feb 16, 2025

Conversation

VictorKoenders
Copy link
Contributor

I wanted to see what hint names were available on my system, and found out they exist in sdl3_sys as *const i8 pointers, but not in sdl3.

I tried deduplicating the code by calling std::ffi::CStr::from_ptr(...).to_str() in a const fn but then the documentation does not get copied over. This seemed the second best thing to do.

Additionally I've added a constant ALL which is a fixed size array of all the constants.

@VictorKoenders
Copy link
Contributor Author

Documentation output:

image

@revmischa revmischa requested review from Lokathor and maia-s February 16, 2025 21:49
@revmischa revmischa merged commit f8beace into vhspace:master Feb 16, 2025
3 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