MCPcopy Create free account
hub / github.com/DFHack/dfhack / lua_getglobal

Function lua_getglobal

depends/lua/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 7

OpenMethod · 0.85
dolibraryFunction · 0.85
get_promptFunction · 0.85
l_printFunction · 0.85
pushargsFunction · 0.85
luaB_printFunction · 0.85
push_constraintFunction · 0.85

Calls 2

auxgetstrFunction · 0.85
luaH_getintFunction · 0.85

Tested by

no test coverage detected