8 #include "core/logging.h"
11 void eax_log_exception(
12 const char* message
) noexcept
14 const auto exception_ptr
= std::current_exception();
16 assert(exception_ptr
);
25 std::rethrow_exception(exception_ptr
);
27 catch (const std::exception
& ex
)
29 const auto ex_message
= ex
.what();
30 ERR("%s\n", ex_message
);
34 ERR("%s\n", "Generic exception.");