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

Function lua_setglobal

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

Source from the content-addressed store, hash-verified

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

Callers 4

createargtableFunction · 0.70
dolibraryFunction · 0.70
luaL_requirefFunction · 0.70
luaopen_tableFunction · 0.70

Calls 2

auxsetstrFunction · 0.70
luaH_getintFunction · 0.70

Tested by

no test coverage detected