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

make SdlDrop zero sized and use more conventional field name #1404

Merged
merged 2 commits into from
Jun 13, 2024

Conversation

antonilol
Copy link
Contributor

The field _anticonstructor is always initialized with the same value (null pointer), so may be zero sized as well.

SdlDrop will remain !Send and !Sync with a pointer inside PhantomData.

@Cobrand Cobrand merged commit b3ac580 into Rust-SDL2:master Jun 13, 2024
@antonilol antonilol deleted the sdldrop branch June 13, 2024 15:20
antonilol added a commit to antonilol/sdl3-rs that referenced this pull request Feb 10, 2025
revmischa pushed a commit to vhspace/sdl3-rs that referenced this pull request Feb 10, 2025
* Reset IS_MAIN_THREAD_DECLARED on drop

see Rust-SDL2/rust-sdl2@3395e4e

* make Sdl and subsystem structs zero sized

based on Rust-SDL2/rust-sdl2#1404
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