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

Function lua_settable

other_src/lua/src/lapi.cpp:677–686  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

675
676
677LUA_API void lua_settable (lua_State *L, int idx) {
678 StkId t;
679 lua_lock(L);
680 api_checknelems(L, 2);
681 t = index2adr(L, idx);
682 api_checkvalidindex(L, t);
683 luaV_settable(L, t, L->top - 2, L->top - 1);
684 L->top -= 2; /* pop index and value */
685 lua_unlock(L);
686}
687
688
689LUA_API void lua_setfield (lua_State *L, int idx, const char *k) {

Callers 5

ll_registerFunction · 0.70
fix_lFunction · 0.70
tablecapFunction · 0.70
luaopen_lpegFunction · 0.70
luaL_findtableFunction · 0.70

Calls 2

index2adrFunction · 0.70
luaV_settableFunction · 0.70

Tested by

no test coverage detected