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

Method Initialize

emmy_debugger/src/debugger/extension_point.cpp:140–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140void ExtensionPoint::Initialize(lua_State* L)
141{
142 lua_pushglobaltable(L);
143 lua_pushstring(L, "emmyHelperInit");
144 lua_pushcfunction(L, emmyHelperInit);
145 lua_rawset(L, -3);
146 lua_pop(L, 1);
147
148 // EMMY_META
149 lua_pushstring(L, "EMMY_META");
150 lua_newtable(L);
151 lua_pushcfunction(L, metaIndex);
152 lua_setfield(L, -2, "__index");
153
154 lua_pushcfunction(L, metaNewIndex);
155 lua_setfield(L, -2, "__newindex");
156
157 lua_rawset(L, LUA_REGISTRYINDEX);
158}
159
160bool ExtensionPoint::QueryVariableGeneric(lua_State* L, Idx<Variable> variable, const char* typeName, int object,
161 int depth, const char* queryFunction)

Callers 1

install_emmy_debuggerFunction · 0.80

Calls 4

lua_pushglobaltableFunction · 0.50
lua_pushstringFunction · 0.50
lua_rawsetFunction · 0.50
lua_setfieldFunction · 0.50

Tested by

no test coverage detected