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

Function lua_setglobal

extlibs/lua/src/lapi.c:806–810  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

804
805
806LUA_API void lua_setglobal (lua_State *L, const char *name) {
807 Table *reg = hvalue(&G(L)->l_registry);
808 lua_lock(L); /* unlock done in 'auxsetstr' */
809 auxsetstr(L, luaH_getint(reg, LUA_RIDX_GLOBALS), name);
810}
811
812
813LUA_API void lua_settable (lua_State *L, int idx) {

Callers 8

createargtableFunction · 0.85
dolibraryFunction · 0.85
luaL_requirefFunction · 0.85
luaL_requirefFunction · 0.85
field_setterClass · 0.85
set_default_handlerFunction · 0.85
register_main_threadFunction · 0.85

Calls 2

auxsetstrFunction · 0.85
luaH_getintFunction · 0.85

Tested by

no test coverage detected