Created
January 21, 2019 05:57
-
-
Save cleak/aeeb5dc8df352557449c2ca4cc7cdbba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typedef void(VoidMemberFn)(void*); | |
VoidMemberFn* fn = (VoidMemberFn*)GetVTable<BaseType>(my_obj_ptr)[1]; | |
// ... sometime later | |
fn(my_obj_ptr); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment