MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / lua_toboolean

Function lua_toboolean

src/Chain/libraries/glua/lapi.cpp:370–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 15

getboolfieldFunction · 0.85
os_exitFunction · 0.85
sort_compFunction · 0.85
noenvFunction · 0.85
str_dumpFunction · 0.85
str_find_auxFunction · 0.85
add_valueFunction · 0.85
io_readlineFunction · 0.85
luaL_require_moduleFunction · 0.85
luaL_get_contract_apisFunction · 0.85

Calls 1

index2addrFunction · 0.85

Tested by

no test coverage detected