This repository has been archived on 2024-06-13. You can view files and clone it, but cannot push or open issues or pull requests.
2020-08-04 13:13:01 -04:00

15 lines
326 B
C

/*
* vfunc.h
*
* Created on: Jan 8, 2017
* Author: nullifiedcat
*/
/*template<typename F>
inline F vfunc(void* thisptr, uintptr_t idx, uintptr_t offset = 0) {
void** vmt = *reinterpret_cast<void***>(uintptr_t(thisptr) + offset);
return reinterpret_cast<F>((vmt)[idx]);
}*/
//#endif /* VFUNC_H_ */