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

Function getboolfield

xrepo/packages/l/lua/port/lua/src/loslib.c:243–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

os_timeFunction · 0.70

Calls 2

lua_getfieldFunction · 0.70
lua_tobooleanFunction · 0.70

Tested by

no test coverage detected