Merge pull request #84 from luadebug/patch-1

internal_rev_object.hpp: do not use __fastcall for non-Windows platforms
This commit is contained in:
2025-10-10 07:47:25 +03:00
committed by GitHub

View File

@@ -29,7 +29,7 @@ namespace omath::rev_eng
#ifdef _MSC_VER
using VirtualMethodType = ReturnType(__thiscall*)(void*, decltype(arg_list)...);
#else
using VirtualMethodType = ReturnType(__fastcall*)(void*, decltype(arg_list)...);
using VirtualMethodType = ReturnType(*)(void*, decltype(arg_list)...);
#endif
return (*reinterpret_cast<VirtualMethodType**>(this))[id](this, arg_list...);
}