21 ss <<
"[" << location.file_name() <<
"] ";
22 ss << location.function_name() <<
"(line " << location.line() <<
", column " << location.column() <<
") ";
53 inline void Assert(
bool value, std::string_view message =
"Assert failed",
54 std::source_location location = std::source_location::current())
116 inline void AlwaysAssert(
bool value, std::string_view message =
"Assert failed",
117 std::source_location location = std::source_location::current())
124 if (value) [[likely]]
Contains debugging-related macros and utilities for assisting with debugging tasks.
#define MAL_TOOLKIT_ASSERT_ABORTS
Controls whether assertions should result in program abortion.
#define MAL_TOOLKIT_FORCE_ASSERT
#define MAL_TOOLKIT_ASSERT_ENABLED
#define MAL_TOOLKIT_ASSERT_LOGS
Indicates whether assertion logs are enabled (1) or disabled (0).
#define MAL_TOOLKIT_ALWAYS_ASSERT_ENABLED