MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / lua_getglobal

Function lua_getglobal

src/Chain/libraries/glua/lapi.cpp:607–611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 15

process_async_connectionFunction · 0.85
luaV_executeFunction · 0.85
vmcaseFunction · 0.85
dolibraryFunction · 0.85
pushargsFunction · 0.85
lua_execute_contract_apiFunction · 0.85
luaB_printFunction · 0.85
luaB_pprintFunction · 0.85

Calls 2

auxgetstrFunction · 0.85
luaH_getintFunction · 0.85

Tested by

no test coverage detected