MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / lua_setglobal

Function lua_setglobal

3rd/lua-5.4.3/src/lapi.c:841–846  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

839
840
841LUA_API void lua_setglobal (lua_State *L, const char *name) {
842 const TValue *G;
843 lua_lock(L); /* unlock done in 'auxsetstr' */
844 G = getGtable(L);
845 auxsetstr(L, G, name);
846}
847
848
849LUA_API void lua_settable (lua_State *L, int idx) {

Callers 3

createargtableFunction · 0.85
dolibraryFunction · 0.85
luaL_requirefFunction · 0.85

Calls 1

auxsetstrFunction · 0.85

Tested by

no test coverage detected