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

Function lua_getglobal

third-party/lua-5.3.5/src/lapi.c:605–609  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

603
604
605LUA_API int lua_getglobal (lua_State *L, const char *name) {
606 Table *reg = hvalue(&G(L)->l_registry);
607 lua_lock(L);
608 return auxgetstr(L, luaH_getint(reg, LUA_RIDX_GLOBALS), name);
609}
610
611
612LUA_API int lua_gettable (lua_State *L, int idx) {

Callers 5

dolibraryFunction · 0.70
get_promptFunction · 0.70
l_printFunction · 0.70
pushargsFunction · 0.70
luaB_printFunction · 0.70

Calls 2

auxgetstrFunction · 0.70
luaH_getintFunction · 0.70

Tested by

no test coverage detected