MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / getboolfield

Function getboolfield

third-party/lua-5.3.5/src/loslib.c:226–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224
225
226static int getboolfield (lua_State *L, const char *key) {
227 int res;
228 res = (lua_getfield(L, -1, key) == LUA_TNIL) ? -1 : lua_toboolean(L, -1);
229 lua_pop(L, 1);
230 return res;
231}
232
233
234/* maximum value for date fields (to avoid arithmetic overflows with 'int') */

Callers 1

os_timeFunction · 0.70

Calls 2

lua_getfieldFunction · 0.70
lua_tobooleanFunction · 0.70

Tested by

no test coverage detected