9 #include "core/logging.h"
12 void eax_log_exception(std::string_view message
) noexcept
14 const auto exception_ptr
= std::current_exception();
15 assert(exception_ptr
);
18 std::rethrow_exception(exception_ptr
);
20 catch(const std::exception
& ex
) {
21 ERR("%.*s %s\n", al::sizei(message
), message
.data(), ex
.what());
24 ERR("%.*s %s\n", al::sizei(message
), message
.data(), "Generic exception.");