MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / setboolfield

Function setboolfield

deps/lua/src/loslib.c:93–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93static void setboolfield (lua_State *L, const char *key, int value) {
94 if (value < 0) /* undefined? */
95 return; /* does not set field */
96 lua_pushboolean(L, value);
97 lua_setfield(L, -2, key);
98}
99
100static int getboolfield (lua_State *L, const char *key) {
101 int res;

Callers 1

os_dateFunction · 0.85

Calls 2

lua_pushbooleanFunction · 0.85
lua_setfieldFunction · 0.85

Tested by

no test coverage detected