MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / metaQuery

Function metaQuery

emmy_debugger/src/debugger/extension_point.cpp:6–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4std::string ExtensionPoint::ExtensionTable = "emmyHelper";
5
6int metaQuery(lua_State* L)
7{
8 const int argN = lua_gettop(L);
9 auto pVar = (Idx<Variable>*)lua_touserdata(L, 1);
10 const int index = 2;
11 const auto depth = lua_tonumber(L, 3);
12 bool queryHelper = false;
13 if (argN >= 4)
14 {
15 queryHelper = lua_toboolean(L, 4);
16 }
17 auto debugger = EmmyFacade::Get().GetDebugger(L);
18
19 if (debugger)
20 {
21 debugger->GetVariable(L, *pVar, index, static_cast<int>(depth), queryHelper);
22 }
23 return 0;
24}
25
26int metaAddChild(lua_State* L)
27{

Callers

nothing calls this directly

Calls 6

GetVariableMethod · 0.80
lua_gettopFunction · 0.50
lua_touserdataFunction · 0.50
lua_tonumberFunction · 0.50
lua_tobooleanFunction · 0.50
GetDebuggerMethod · 0.45

Tested by

no test coverage detected