MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / lua_getglobal

Function lua_getglobal

extlibs/lua/src/lapi.c:626–630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

624
625
626LUA_API int lua_getglobal (lua_State *L, const char *name) {
627 Table *reg = hvalue(&G(L)->l_registry);
628 lua_lock(L);
629 return auxgetstr(L, luaH_getint(reg, LUA_RIDX_GLOBALS), name);
630}
631
632
633LUA_API int lua_gettable (lua_State *L, int idx) {

Callers 8

dolibraryFunction · 0.85
pushargsFunction · 0.85
get_promptFunction · 0.85
l_printFunction · 0.85
call_exception_handlerFunction · 0.85
main_threadFunction · 0.85
field_getterClass · 0.85
get_default_handlerFunction · 0.85

Calls 2

auxgetstrFunction · 0.85
luaH_getintFunction · 0.85

Tested by

no test coverage detected