| 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 |
no test coverage detected