MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / TENAssert

Function TENAssert

TombEngine/Game/debug/debug.h:42–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 void TENLog(const std::string_view& msg, LogLevel level = LogLevel::Info, LogConfig config = LogConfig::All, bool allowSpam = false);
41
42 inline void TENAssert(const bool& cond, const std::string& msg)
43 {
44 if constexpr (DEBUG_BUILD)
45 {
46 if (!cond)
47 {
48 TENLog(msg, LogLevel::Error);
49 throw std::runtime_error(msg);
50 }
51 }
52 };
53
54 // Timers
55

Callers 15

Bindings.cppFile · 0.85
ValidateMethod · 0.85
BridgeObject.cppFile · 0.85
UpdateMethod · 0.85
ParseEffectsFunction · 0.85
ParseLevelFunction · 0.85
AmmoClass · 0.85
Streamer.cppFile · 0.85
AddStreamerMethod · 0.85
SpawnMethod · 0.85
effects.hFile · 0.85

Calls 1

TENLogFunction · 0.85

Tested by

no test coverage detected