MCPcopy Create free account
hub / github.com/F-Stack/f-stack / lua_setfield

Function lua_setfield

freebsd/contrib/openzfs/module/lua/lapi.c:755–764  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 15

luaopen_baseFunction · 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
zcp_load_get_libFunction · 0.50
zcp_nvlist_to_luaFunction · 0.50
zcp_eval_implFunction · 0.50
zcp_evalFunction · 0.50

Calls 3

index2addrFunction · 0.85
luaS_newFunction · 0.85
luaV_settableFunction · 0.70

Tested by

no test coverage detected