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

Function lua_toboolean

third-party/lua-5.1.5/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 10

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
printFunction · 0.50

Calls 1

index2adrFunction · 0.85

Tested by

no test coverage detected