MCPcopy Create free account
hub / github.com/BigPig0/RelayLive / lua_setfield

Function lua_setfield

ThirdParty/lua/lua/lapi.c:745–754  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

743
744
745LUA_API void lua_setfield (lua_State *L, int idx, const char *k) {
746 StkId t;
747 lua_lock(L);
748 api_checknelems(L, 1);
749 t = index2addr(L, idx);
750 setsvalue2s(L, L->top++, luaS_new(L, k));
751 luaV_settable(L, t, L->top - 1, L->top - 2);
752 L->top -= 2; /* pop value and key */
753 lua_unlock(L);
754}
755
756
757LUA_API void lua_seti (lua_State *L, int idx, lua_Integer n) {

Callers 15

SetFieldFunction · 0.85
luaopen_baseFunction · 0.85
luaopen_mathFunction · 0.85
createmetatableFunction · 0.85
luaL_newmetatableFunction · 0.85
luaL_pushmoduleFunction · 0.85
luaL_setfuncsFunction · 0.85
luaL_getsubtableFunction · 0.85
luaL_requirefFunction · 0.85
luaopen_utf8Function · 0.85
packFunction · 0.85
addtoclibFunction · 0.85

Calls 3

index2addrFunction · 0.85
luaS_newFunction · 0.85
luaV_settableFunction · 0.85

Tested by

no test coverage detected