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

Function getboolfield

deps/lua/src/loslib.c:100–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100static int getboolfield (lua_State *L, const char *key) {
101 int res;
102 lua_getfield(L, -1, key);
103 res = lua_isnil(L, -1) ? -1 : lua_toboolean(L, -1);
104 lua_pop(L, 1);
105 return res;
106}
107
108
109static int getfield (lua_State *L, const char *key, int d) {

Callers 1

os_timeFunction · 0.85

Calls 2

lua_getfieldFunction · 0.85
lua_tobooleanFunction · 0.85

Tested by

no test coverage detected