MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / setboolfield

Function setboolfield

lib/lua/src/loslib.c:221–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219
220
221static void setboolfield (lua_State *L, const char *key, int value) {
222 if (value < 0) /* undefined? */
223 return; /* does not set field */
224 lua_pushboolean(L, value);
225 lua_setfield(L, -2, key);
226}
227
228
229/*

Callers 1

setallfieldsFunction · 0.85

Calls 2

lua_pushbooleanFunction · 0.85
lua_setfieldFunction · 0.85

Tested by

no test coverage detected