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

Function setfield

depends/lua/src/loslib.c:197–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195*/
196
197static void setfield (lua_State *L, const char *key, int value) {
198 lua_pushinteger(L, value);
199 lua_setfield(L, -2, key);
200}
201
202static void setboolfield (lua_State *L, const char *key, int value) {
203 if (value < 0) /* undefined? */

Callers 1

setallfieldsFunction · 0.85

Calls 2

lua_pushintegerFunction · 0.85
lua_setfieldFunction · 0.85

Tested by

no test coverage detected