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

Function pushVariable

emmy_debugger/src/debugger/extension_point.cpp:98–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98void pushVariable(lua_State* L, Idx<Variable> variable)
99{
100 auto p = (Idx<Variable>*)lua_newuserdata(L, sizeof(Idx<Variable>));
101 *p = variable;
102 lua_pushstring(L, "EMMY_META");
103 lua_rawget(L, LUA_REGISTRYINDEX);
104
105 lua_setmetatable(L, -2);
106}
107
108int createNode(lua_State* L)
109{

Callers 2

createNodeFunction · 0.85
QueryVariableGenericMethod · 0.85

Calls 4

lua_newuserdataFunction · 0.50
lua_pushstringFunction · 0.50
lua_rawgetFunction · 0.50
lua_setmetatableFunction · 0.50

Tested by

no test coverage detected