1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-21 10:53:51 +00:00

Log callbacks

This commit is contained in:
Koncord 2016-09-18 11:54:06 +08:00
parent e661a35ac2
commit 61c5456373

View file

@ -96,6 +96,9 @@ public:
if (!callback) if (!callback)
continue; continue;
LOG_MESSAGE_SIMPLE(Log::LOG_VERBOSE, "Called function \"%s\"", data.name);
if (script->script_type == SCRIPT_CPP) if (script->script_type == SCRIPT_CPP)
result = reinterpret_cast<FunctionEllipsis<CallBackReturn<I>>>(callback)(std::forward<Args>(args)...); result = reinterpret_cast<FunctionEllipsis<CallBackReturn<I>>>(callback)(std::forward<Args>(args)...);
#if defined (ENABLE_PAWN) #if defined (ENABLE_PAWN)
@ -135,6 +138,8 @@ public:
if (!callback) if (!callback)
continue; continue;
LOG_MESSAGE_SIMPLE(Log::LOG_VERBOSE, "Called function \"%s\"", data.name);
if (script->script_type == SCRIPT_CPP) if (script->script_type == SCRIPT_CPP)
reinterpret_cast<FunctionEllipsis<CallBackReturn<I>>>(callback)(std::forward<Args>(args)...); reinterpret_cast<FunctionEllipsis<CallBackReturn<I>>>(callback)(std::forward<Args>(args)...);
#if defined (ENABLE_PAWN) #if defined (ENABLE_PAWN)