glfw: Tidy up UserPointer access #152

Merged
InKryption merged 1 commit from main into main 2022-01-03 01:17:27 +00:00
InKryption commented 2022-01-02 18:38:42 +00:00 (Migrated from github.com)

This change both restricts and clarifies the mutability/nullability of the pointers, and replaces the explicitly-typed pointer usage in setUserPointer with ?*anyopaque, since it now, as of being renamed from c_void, more simply communicates the intent of taking any pointer type.

  • By selecting this checkbox, I agree to license my contributions to this project under the license(s) described in the LICENSE file, and I have the right to do so or have received permission to do so by an employer or client I am producing work for whom has this right.
This change both restricts and clarifies the mutability/nullability of the pointers, and replaces the explicitly-typed pointer usage in setUserPointer with ?*anyopaque, since it now, as of being renamed from c_void, more simply communicates the intent of taking any pointer type. - [x] By selecting this checkbox, I agree to license my contributions to this project under the license(s) described in the LICENSE file, and I have the right to do so or have received permission to do so by an employer or client I am producing work for whom has this right.
alichraghi (Migrated from github.com) approved these changes 2022-01-02 18:40:32 +00:00
InKryption commented 2022-01-02 18:43:48 +00:00 (Migrated from github.com)

Pardon the force pushes, been a while, and I keep messing up the commit message

Pardon the force pushes, been a while, and I keep messing up the commit message
emidoots (Migrated from github.com) approved these changes 2022-01-03 01:16:51 +00:00
emidoots (Migrated from github.com) left a comment

Nice! Thanks for this!

Nice! Thanks for this!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
hexops/mach!152
No description provided.