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

Function setboolfield

depends/lua/src/loslib.c:202–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202static void setboolfield (lua_State *L, const char *key, int value) {
203 if (value < 0) /* undefined? */
204 return; /* does not set field */
205 lua_pushboolean(L, value);
206 lua_setfield(L, -2, key);
207}
208
209
210/*

Callers 1

setallfieldsFunction · 0.85

Calls 2

lua_pushbooleanFunction · 0.85
lua_setfieldFunction · 0.85

Tested by

no test coverage detected