MCPcopy Create free account
hub / github.com/F-Stack/f-stack / lua_toboolean

Function lua_toboolean

app/redis-6.2.6/deps/lua/src/lapi.c:337–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335
336
337LUA_API int lua_toboolean (lua_State *L, int idx) {
338 const TValue *o = index2adr(L, idx);
339 return !l_isfalse(o);
340}
341
342
343LUA_API const char *lua_tolstring (lua_State *L, int idx, size_t *len) {

Callers 15

luaB_assertFunction · 0.70
luaB_tostringFunction · 0.70
luaB_newproxyFunction · 0.70
str_find_auxFunction · 0.70
add_valueFunction · 0.70
json_enum_optionFunction · 0.70
json_append_dataFunction · 0.70
sort_compFunction · 0.70
mp_encode_lua_boolFunction · 0.70
ll_requireFunction · 0.70
getboolfieldFunction · 0.70
io_readlineFunction · 0.70

Calls 1

index2adrFunction · 0.85

Tested by

no test coverage detected