MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / lua_settable

Function lua_settable

src/Chain/libraries/glua/lapi.cpp:768–776  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

luaL_findtableFunction · 0.85

Calls 1

index2addrFunction · 0.85

Tested by

no test coverage detected