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

Function lua_pushboolean

engine/lua/src/lua/lapi.c:503–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

501
502
503LUA_API void lua_pushboolean (lua_State *L, int b) {
504 lua_lock(L);
505 setbvalue(L->top, (b != 0)); /* ensure that true is 1 */
506 api_incr_top(L);
507 lua_unlock(L);
508}
509
510
511LUA_API void lua_pushlightuserdata (lua_State *L, void *p) {

Callers 15

ScriptIsValidFunction · 0.85
ScriptInstanceIsValidFunction · 0.85
Script_ExistsFunction · 0.85
PropertiesToLuaTableFunction · 0.85
CompScriptOnInputFunction · 0.85
LuaPushVarFunction · 0.85
TEST_FFunction · 0.85
TestGetInstanceContextFunction · 0.85
TEST_FFunction · 0.85
Sys_SaveFunction · 0.85
Sys_ExistsFunction · 0.85

Calls

no outgoing calls

Tested by 11

TEST_FFunction · 0.68
TestGetInstanceContextFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68
TestIsValidFunction · 0.68
TEST_FFunction · 0.68
ScriptInstanceIsValidFunction · 0.68
TEST_PFunction · 0.68