forked from teamnwah/openmw-tes3coop
Log callbacks
This commit is contained in:
parent
e661a35ac2
commit
61c5456373
1 changed files with 5 additions and 0 deletions
|
@ -96,6 +96,9 @@ public:
|
|||
if (!callback)
|
||||
continue;
|
||||
|
||||
|
||||
LOG_MESSAGE_SIMPLE(Log::LOG_VERBOSE, "Called function \"%s\"", data.name);
|
||||
|
||||
if (script->script_type == SCRIPT_CPP)
|
||||
result = reinterpret_cast<FunctionEllipsis<CallBackReturn<I>>>(callback)(std::forward<Args>(args)...);
|
||||
#if defined (ENABLE_PAWN)
|
||||
|
@ -135,6 +138,8 @@ public:
|
|||
if (!callback)
|
||||
continue;
|
||||
|
||||
LOG_MESSAGE_SIMPLE(Log::LOG_VERBOSE, "Called function \"%s\"", data.name);
|
||||
|
||||
if (script->script_type == SCRIPT_CPP)
|
||||
reinterpret_cast<FunctionEllipsis<CallBackReturn<I>>>(callback)(std::forward<Args>(args)...);
|
||||
#if defined (ENABLE_PAWN)
|
||||
|
|
Loading…
Reference in a new issue