MCPcopy Create free account
hub / github.com/crownengine/crown / lua_toboolean

Function lua_toboolean

3rdparty/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 11

luaB_assertFunction · 0.70
luaB_tostringFunction · 0.70
luaB_newproxyFunction · 0.70
str_find_auxFunction · 0.70
add_valueFunction · 0.70
sort_compFunction · 0.70
ll_requireFunction · 0.70
getboolfieldFunction · 0.70
io_readlineFunction · 0.70
load_apiFunction · 0.50
require_internalFunction · 0.50

Calls 1

index2adrFunction · 0.70

Tested by

no test coverage detected