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

Function lua_toboolean

engine/lua/src/lua/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 15

Script_SetParentFunction · 0.85
Script_DeleteFunction · 0.85
CompScriptOnInputFunction · 0.85
LuaToVarFunction · 0.85
TEST_FFunction · 0.85
Sys_GetConfigBooleanFunction · 0.85
Sys_GetSysInfoFunction · 0.85
IsValidInstanceFunction · 0.85
CheckBooleanFunction · 0.85
LuaValueToDDFFunction · 0.85
TimerDelayFunction · 0.85

Calls 1

index2adrFunction · 0.85

Tested by 12

TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68
UpdateAndWaitUntilDoneFunction · 0.68
TEST_FFunction · 0.68
TEST_PFunction · 0.68
WaitForTestsDoneMethod · 0.68
TEST_FFunction · 0.68
RunPhysicsScriptTestFunction · 0.68
TEST_FFunction · 0.68