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

Function getboolfield

lib/lua/src/loslib.c:245–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243
244
245static int getboolfield (lua_State *L, const char *key) {
246 int res;
247 res = (lua_getfield(L, -1, key) == LUA_TNIL) ? -1 : lua_toboolean(L, -1);
248 lua_pop(L, 1);
249 return res;
250}
251
252
253static int getfield (lua_State *L, const char *key, int d, int delta) {

Callers 1

os_timeFunction · 0.85

Calls 2

lua_getfieldFunction · 0.85
lua_tobooleanFunction · 0.85

Tested by

no test coverage detected