MCPcopy Create free account
hub / github.com/DFHack/dfhack / lua_settable

Function lua_settable

depends/lua/src/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 13

AddFieldInfoTableFunction · 0.85
hotkey_pushBindArrayFunction · 0.85
filesystem_listdirFunction · 0.85
internal_getModifiersFunction · 0.85
internal_getScriptPathsFunction · 0.85
internal_listPluginsFunction · 0.85
internal_listCommandsFunction · 0.85
copy_tableFunction · 0.85
meta_assignFunction · 0.85
PushFunction · 0.85
TableInsertFunction · 0.85

Calls 1

index2addrFunction · 0.85

Tested by

no test coverage detected