mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2026-01-02 19:03:15 +00:00
Fix ScriptFunctionPointer
This commit is contained in:
parent
4763a46364
commit
aaffcba79b
1 changed files with 2 additions and 6 deletions
|
|
@ -99,13 +99,9 @@ struct CallbackIdentity
|
|||
struct ScriptFunctionPointer : public ScriptIdentity
|
||||
{
|
||||
void *addr;
|
||||
#if (!defined(__clang__) && defined(__GNUC__))
|
||||
|
||||
template<typename R, typename... Types>
|
||||
constexpr ScriptFunctionPointer(Function<R, Types...> addr) : ScriptIdentity(addr), addr((void*)(addr)) {}
|
||||
#else
|
||||
template<typename R, typename... Types>
|
||||
constexpr ScriptFunctionPointer(Function<R, Types...> addr) : ScriptIdentity(addr), addr(addr) {}
|
||||
#endif
|
||||
constexpr ScriptFunctionPointer(Function<R, Types...> addr) : ScriptIdentity(addr), addr(reinterpret_cast<void*>(reinterpret_cast<intptr_t>(addr))) {}
|
||||
};
|
||||
|
||||
struct ScriptFunctionData
|
||||
|
|
|
|||
Loading…
Reference in a new issue