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

Function PopBool

src/lua/LuaHandleCallIns.cpp:45–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43//============================================================================//
44
45static bool PopBool(lua_State* L, bool def) {
46 if (!lua_isboolean(L, -1)) {
47 lua_pop(L, 1);
48 return def;
49 }
50 const bool retval = lua_tobool(L, -1);
51 lua_pop(L, 1);
52 return retval;
53}
54
55
56//============================================================================//

Callers 15

CommandFallbackMethod · 0.85
RecvCommandMethod · 0.85
KeyPressMethod · 0.85
KeyReleaseMethod · 0.85
UnicodeTextMethod · 0.85
MousePressMethod · 0.85
MouseReleaseMethod · 0.85
MouseMoveMethod · 0.85
MouseWheelMethod · 0.85
IsAboveMethod · 0.85
ForbidSpawnMethod · 0.85
ForbidJumpMethod · 0.85

Calls 1

lua_toboolFunction · 0.85

Tested by

no test coverage detected