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

Function lua_setfield

third-party/lua-5.1.5/src/lapi.c:657–668  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

655
656
657LUA_API void lua_setfield (lua_State *L, int idx, const char *k) {
658 StkId t;
659 TValue key;
660 lua_lock(L);
661 api_checknelems(L, 1);
662 t = index2adr(L, idx);
663 api_checkvalidindex(L, t);
664 setsvalue(L, &key, luaS_new(L, k));
665 luaV_settable(L, t, &key, L->top - 1);
666 L->top--; /* pop value */
667 lua_unlock(L);
668}
669
670
671LUA_API void lua_rawset (lua_State *L, int idx) {

Callers 15

auxopenFunction · 0.70
base_openFunction · 0.70
luaopen_mathFunction · 0.70
createmetatableFunction · 0.70
luaopen_stringFunction · 0.70
luaL_newmetatableFunction · 0.70
luaI_openlibFunction · 0.70
getsizesFunction · 0.70
ll_requireFunction · 0.70
modinitFunction · 0.70
ll_moduleFunction · 0.70
ll_seeallFunction · 0.70

Calls 3

index2adrFunction · 0.85
luaV_settableFunction · 0.70
luaS_newFunction · 0.50

Tested by

no test coverage detected