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

Function lua_setfield

third-party/lua-5.2.4/src/lapi.c:758–767  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

756
757
758LUA_API void lua_setfield (lua_State *L, int idx, const char *k) {
759 StkId t;
760 lua_lock(L);
761 api_checknelems(L, 1);
762 t = index2addr(L, idx);
763 setsvalue2s(L, L->top++, luaS_new(L, k));
764 luaV_settable(L, t, L->top - 1, L->top - 2);
765 L->top -= 2; /* pop value and key */
766 lua_unlock(L);
767}
768
769
770LUA_API void lua_rawset (lua_State *L, int idx) {

Callers 15

luaL_openlibsFunction · 0.70
pmainFunction · 0.70
luaopen_baseFunction · 0.70
luaopen_mathFunction · 0.70
createmetatableFunction · 0.70
luaL_newmetatableFunction · 0.70
luaL_pushmoduleFunction · 0.70
luaL_setfuncsFunction · 0.70
luaL_getsubtableFunction · 0.70
luaL_requirefFunction · 0.70
packFunction · 0.70
ll_addtoclibFunction · 0.70

Calls 3

index2addrFunction · 0.70
luaS_newFunction · 0.70
luaV_settableFunction · 0.70

Tested by

no test coverage detected