MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / getboolfield

Function getboolfield

extlibs/lua/src/loslib.c:241–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239
240
241static int getboolfield (lua_State *L, const char *key) {
242 int res;
243 res = (lua_getfield(L, -1, key) == LUA_TNIL) ? -1 : lua_toboolean(L, -1);
244 lua_pop(L, 1);
245 return res;
246}
247
248
249static 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