We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3874af commit 4c88d90Copy full SHA for 4c88d90
src/scripting/core.cpp
@@ -72,6 +72,11 @@ void SetupScriptingEnvironment(PluginObject plugin, EContext* ctx)
72
73
ADD_FUNCTION("OnFunctionContextRegister", [](FunctionContext* context) -> void {
74
std::string function_call = replace(context->GetFunctionKey(), " ", "::");
75
+ std::vector<std::string> arguments;
76
+ for (int i = 0; i < context->GetArgumentsCount(); i++)
77
+ arguments.push_back(context->GetArgumentAsString(i));
78
+ function_call += "(" + implode(arguments, ", ") + ")";
79
+
80
context->temporaryData.push_back(g_callStack.RegisterPluginCallstack(FetchPluginName(context->GetPluginContext()), function_call));
81
g_ResourceMonitor.StartTime("core", replace(context->GetFunctionKey(), " ", "::"));
82
});
0 commit comments