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

Function lua_pushglobaltable

emmy_debugger/src/api/lua_api_loader.cpp:376–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

374}
375
376void lua_pushglobaltable(lua_State* L)
377{
378 if (luaVersion == LuaVersion::LUA_51 || luaVersion == LuaVersion::LUA_JIT)
379 {
380 lua_pushvalue(L, LUA_GLOBALSINDEX);
381 }
382 else
383 {
384 lua_rawgeti(L, LUA_REGISTRYINDEX, LUA_GLOBALSINDEX);
385 }
386}
387
388int lua_rawgetp(lua_State* L, int idx, const void* p)
389{

Callers

nothing calls this directly

Calls 2

lua_pushvalueFunction · 0.50
lua_rawgetiFunction · 0.50

Tested by

no test coverage detected