8 #include "core/logging.h"
11 void eax_log_exception(const char *message) noexcept
13 const auto exception_ptr = std::current_exception();
14 assert(exception_ptr);
17 std::rethrow_exception(exception_ptr);
19 catch(const std::exception& ex) {
20 const auto ex_message = ex.what();
21 ERR("%s %s\n", message ? message : "", ex_message);
24 ERR("%s %s\n", message ? message : "", "Generic exception.");