MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / lua_toboolean

Function lua_toboolean

source/extern/lua/lapi.c:367–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

365
366
367LUA_API int lua_toboolean (lua_State *L, int idx) {
368 const TValue *o = index2addr(L, idx);
369 return !l_isfalse(o);
370}
371
372
373LUA_API const char *lua_tolstring (lua_State *L, int idx, size_t *len) {

Callers 13

luaB_assertFunction · 0.85
str_dumpFunction · 0.85
str_find_auxFunction · 0.85
add_valueFunction · 0.85
luaL_tolstringFunction · 0.85
luaL_requirefFunction · 0.85
sort_compFunction · 0.85
noenvFunction · 0.85
ll_requireFunction · 0.85
getboolfieldFunction · 0.85
os_exitFunction · 0.85
io_readlineFunction · 0.85

Calls 1

index2addrFunction · 0.85

Tested by

no test coverage detected