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

Function lua_toboolean

freebsd/contrib/openzfs/module/lua/lapi.c:380–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378
379
380LUA_API int lua_toboolean (lua_State *L, int idx) {
381 const TValue *o = index2addr(L, idx);
382 return !l_isfalse(o);
383}
384
385
386LUA_API const char *lua_tolstring (lua_State *L, int idx, size_t *len) {

Callers 9

luaB_assertFunction · 0.70
str_find_auxFunction · 0.70
add_valueFunction · 0.70
luaL_tolstringFunction · 0.70
sort_compFunction · 0.70
zcp_table_to_nvlistFunction · 0.50
zcp_lua_to_nvlist_implFunction · 0.50
zcp_synctask_destroyFunction · 0.50
zcp_synctask_wrapperFunction · 0.50

Calls 1

index2addrFunction · 0.85

Tested by

no test coverage detected