MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / setboolfield

Function setboolfield

lua/loslib.c:109–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109static void setboolfield (lua_State *L, const char *key, int value) {
110 if (value < 0) /* undefined? */
111 return; /* does not set field */
112 lua_pushboolean(L, value);
113 lua_setfield(L, -2, key);
114}
115
116static int getboolfield (lua_State *L, const char *key) {
117 int res;

Callers 1

os_dateFunction · 0.85

Calls 2

lua_pushbooleanFunction · 0.85
lua_setfieldFunction · 0.85

Tested by

no test coverage detected