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

Utils: Add a new helper to modify the value of a struct member by its offset #89

Closed
wants to merge 3 commits into from

Conversation

0xFireWolf
Copy link
Contributor

This helper is needed by WEG's new patch submodule (acidanthera/WhateverGreen#113).

@VisualEhrmanntraut
Copy link

Fun fact: You can just do getMember<T>(obj, off) = val;. It returns a reference.

@0xFireWolf
Copy link
Contributor Author

Fun fact: You can just do getMember<T>(obj, off) = val;. It returns a reference.

Thanks for the reminder. I just noticed that getMember returns a mutable reference.

Closed.

@0xFireWolf 0xFireWolf closed this Jun 5, 2023
@0xFireWolf 0xFireWolf deleted the squashed branch June 5, 2023 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants