Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
337
LUA_API int lua_toboolean (lua_State *L, int idx) {
338
const TValue *o = index2adr(L, idx);
339
return !l_isfalse(o);
340
}
341
342
343
LUA_API const char *lua_tolstring (lua_State *L, int idx, size_t *len) {
Callers
15
Script_SetParent
Function · 0.85
Script_Delete
Function · 0.85
CompScriptOnInput
Function · 0.85
LuaToVar
Function · 0.85
PropertyContainerCreateFromLua
Function · 0.85
TEST_F
Function · 0.85
Sys_GetConfigBoolean
Function · 0.85
Sys_GetSysInfo
Function · 0.85
IsValidInstance
Function · 0.85
CheckBoolean
Function · 0.85
LuaValueToDDF
Function · 0.85
TimerDelay
Function · 0.85
Calls
1
index2adr
Function · 0.85
Tested by
12
TEST_F
Function · 0.68
TEST_F
Function · 0.68
TEST_F
Function · 0.68
TEST_F
Function · 0.68
TEST_F
Function · 0.68
UpdateAndWaitUntilDone
Function · 0.68
TEST_F
Function · 0.68
TEST_P
Function · 0.68
WaitForTestsDone
Method · 0.68
TEST_F
Function · 0.68
RunPhysicsScriptTest
Function · 0.68
TEST_F
Function · 0.68