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

Function lua_setglobal

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

Source from the content-addressed store, hash-verified

759
760
761LUA_API void lua_setglobal(lua_State *L, const char *name) {
762 Table *reg = hvalue(&G(L)->l_registry);
763 lua_lock(L); /* unlock done in 'auxsetstr' */
764 auxsetstr(L, luaH_getint(reg, LUA_RIDX_GLOBALS), name);
765}
766
767
768LUA_API void lua_settable(lua_State *L, int idx) {

Callers 15

lualib_http_accept_asyncFunction · 0.85
lualib_net_accept_asyncFunction · 0.85
luaopen_tableFunction · 0.85
dolibraryFunction · 0.85
createargtableFunction · 0.85
lua_execute_contract_apiFunction · 0.85
luaL_requirefFunction · 0.85

Calls 2

auxsetstrFunction · 0.85
luaH_getintFunction · 0.85

Tested by

no test coverage detected