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

Function lua_toboolean

other_src/lua/src/lapi.cpp: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

getboolfieldFunction · 0.70
treadonlyFunction · 0.70
comp_customFunction · 0.70
ll_requireFunction · 0.70
matchFunction · 0.70
getpattFunction · 0.70
str_find_auxFunction · 0.70
add_valueFunction · 0.70
io_readlineFunction · 0.70
luaB_assertFunction · 0.70
luaB_tostringFunction · 0.70
luaB_newproxyFunction · 0.70

Calls 1

index2adrFunction · 0.70

Tested by

no test coverage detected