#include "fud_assert.hpp" #include "fud_array.hpp" #include #include #include namespace fud { void assertFail(const char* assertion, const char* file, unsigned int line, const char* function) noexcept(false) { constexpr size_t ASSERT_MSG_SIZE = 1024; Array buffer{}; static_cast(std::format_to_n( buffer.data(), buffer.size() - 1U, "{}:{}: {}:Assertion `{}` failed", file, line, function, assertion)); throw std::runtime_error(buffer.data()); } }