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

Function lua_settable

source/extern/lua/lapi.c:766–774  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

764
765
766LUA_API void lua_settable (lua_State *L, int idx) {
767 StkId t;
768 lua_lock(L);
769 api_checknelems(L, 2);
770 t = index2addr(L, idx);
771 luaV_settable(L, t, L->top - 2, L->top - 1);
772 L->top -= 2; /* pop index and value */
773 lua_unlock(L);
774}
775
776
777LUA_API void lua_setfield (lua_State *L, int idx, const char *k) {

Callers 2

luaL_findtableFunction · 0.85
tableSetMethod · 0.85

Calls 1

index2addrFunction · 0.85

Tested by

no test coverage detected