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

Function lua_setglobal

xrepo/packages/l/lua/port/lua/src/lapi.c:851–856  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 8

LuaRegisterFunction · 0.85
skr_lua_newstateFunction · 0.85
luaopen_tableFunction · 0.85
luaopen_baseFunction · 0.85
createargtableFunction · 0.85
dolibraryFunction · 0.85
luaL_requirefFunction · 0.85
main_module_execMethod · 0.85

Calls 1

auxsetstrFunction · 0.85

Tested by

no test coverage detected