MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / lua_toboolean

Function lua_toboolean

lua/lapi.c:338–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336
337
338LUA_API int lua_toboolean (lua_State *L, int idx) {
339 const TValue *o = index2adr(L, idx);
340 return !l_isfalse(o);
341}
342
343
344LUA_API const char *lua_tolstring (lua_State *L, int idx, size_t *len) {

Callers 15

luaB_assertFunction · 0.85
luaB_tostringFunction · 0.85
luaB_newproxyFunction · 0.85
str_find_auxFunction · 0.85
add_valueFunction · 0.85
get_date_valueFunction · 0.85
luabb_dumpcstack_Function · 0.85
dbconsumer_getargsFunction · 0.85
db_json_to_tableFunction · 0.85
process_json_convFunction · 0.85
table_to_csonFunction · 0.85
lua_to_sqliteFunction · 0.85

Calls 1

index2adrFunction · 0.85

Tested by

no test coverage detected