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

Function CheckBoolean

engine/script/src/script.cpp:2211–2218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2209 }
2210
2211 bool CheckBoolean(lua_State* L, int index)
2212 {
2213 if (lua_isboolean(L, index))
2214 {
2215 return lua_toboolean(L, index);
2216 }
2217 return luaL_error(L, "Argument %d must be a boolean", index);
2218 }
2219
2220 void PushBoolean(lua_State* L, bool v)
2221 {

Callers 7

TEST_FFunction · 0.85
Image_LoadFunction · 0.85
Image_LoadBufferFunction · 0.85
SetMouseLockFunction · 0.85
Physics_SetMaskBitFunction · 0.85
Sound_PauseFunction · 0.85

Calls 2

lua_tobooleanFunction · 0.85
luaL_errorFunction · 0.85

Tested by 1

TEST_FFunction · 0.68