sylveon / member_thunk

Dynamically creates executable code to allow C callbacks to call C++ member functions without the need for a user data parameter
MIT License
13 stars 2 forks source link

Support different kind of member function pointers #9

Closed sylveon closed 4 years ago

sylveon commented 4 years ago

Currently only supports single inheritance member function pointers, need to support multi, virtual and unknown MFPs (different size and/or signature in content)

sylveon commented 4 years ago

Apparently nothing to be done, all the cases of MFPs having vtable offsets or this adjustments embedded I could find now just redirect to a thunk, seems like the differing sizes are for backwards compatibility only. It also works for my multi-inheritance use case.