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

Function lua_setglobal

third-party/lua-5.4.6/src/lapi.c:847–852  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

845
846
847LUA_API void lua_setglobal (lua_State *L, const char *name) {
848 const TValue *G;
849 lua_lock(L); /* unlock done in 'auxsetstr' */
850 G = getGtable(L);
851 auxsetstr(L, G, name);
852}
853
854
855LUA_API void lua_settable (lua_State *L, int idx) {

Callers 3

createargtableFunction · 0.70
dolibraryFunction · 0.70
luaL_requirefFunction · 0.70

Calls 1

auxsetstrFunction · 0.70

Tested by

no test coverage detected