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

Function lua_settable

lib/lua/src/lapi.c:645–654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

643
644
645LUA_API void lua_settable (lua_State *L, int idx) {
646 StkId t;
647 lua_lock(L);
648 api_checknelems(L, 2);
649 t = index2adr(L, idx);
650 api_checkvalidindex(L, t);
651 luaV_settable(L, t, L->top - 2, L->top - 1);
652 L->top -= 2; /* pop index and value */
653 lua_unlock(L);
654}
655
656
657LUA_API void lua_setfield (lua_State *L, int idx, const char *k) {

Callers 15

tolua_pushfieldvalueFunction · 0.85
tolua_pushfieldbooleanFunction · 0.85
tolua_pushfieldnumberFunction · 0.85
tolua_pushfieldstringFunction · 0.85
tolua_pushfielduserdataFunction · 0.85
tolua_pushfieldusertypeFunction · 0.85
tolua_newmetatableFunction · 0.85
storeatuboxFunction · 0.85
setfieldFunction · 0.85
f_StartElementFunction · 0.85
set_infoFunction · 0.85

Calls 2

index2adrFunction · 0.85
luaV_settableFunction · 0.85

Tested by

no test coverage detected