MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / lua_settable

Function lua_settable

src/vm/luavm/lua/lapi.c:737–745  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

735
736
737LUA_API void lua_settable (lua_State *L, int idx) {
738 StkId t;
739 lua_lock(L);
740 api_checknelems(L, 2);
741 t = index2addr(L, idx);
742 luaV_settable(L, t, L->top - 2, L->top - 1);
743 L->top -= 2; /* pop index and value */
744 lua_unlock(L);
745}
746
747
748LUA_API void lua_setfield (lua_State *L, int idx, const char *k) {

Callers 2

luaopen_arrayFunction · 0.85
luaL_findtableFunction · 0.85

Calls 2

index2addrFunction · 0.85
luaV_settableFunction · 0.85

Tested by

no test coverage detected