Remove duplicate GetVirtualFunction.
* Thanks to @luk1337 for pointing this out. Signed-off-by: aixxe <me@aixxe.net>
This commit is contained in:
parent
3eafa3649a
commit
0eb481e754
|
@ -4,10 +4,6 @@ inline void**& GetVirtualTable(void* baseclass) {
|
|||
return *reinterpret_cast<void***>(baseclass);
|
||||
}
|
||||
|
||||
inline void* GetVirtualFunction(void* vftable, size_t index) {
|
||||
return reinterpret_cast<void*>(GetVirtualTable(vftable)[index]);
|
||||
}
|
||||
|
||||
template <typename Fn> inline Fn GetVirtualFunction(void* vftable, size_t index) {
|
||||
return reinterpret_cast<Fn>(GetVirtualTable(vftable)[index]);
|
||||
template <typename Fn = void*> inline Fn GetVirtualFunction(void* baseclass, size_t index) {
|
||||
return reinterpret_cast<Fn>(GetVirtualTable(baseclass)[index]);
|
||||
}
|
Loading…
Reference in New Issue