mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-20 04:34:48 +00:00
keeping the alt 87514151c4 (diff-73a8dc1ce58605f6c5ea53548454c3bae516ec5132a29c9d7ff7edf9730c75be)
26 lines
482 B
C++
26 lines
482 B
C++
#include "config.h"
|
|
|
|
#include "utils.h"
|
|
|
|
#include <cassert>
|
|
#include <exception>
|
|
|
|
#include "core/logging.h"
|
|
|
|
|
|
void eax_log_exception(std::string_view message) noexcept
|
|
{
|
|
const auto exception_ptr = std::current_exception();
|
|
assert(exception_ptr);
|
|
|
|
try {
|
|
std::rethrow_exception(exception_ptr);
|
|
}
|
|
catch(const std::exception& ex) {
|
|
ERR("{} {}", message, ex.what());
|
|
}
|
|
catch(...) {
|
|
ERR("{} {}", message, "Generic exception.");
|
|
}
|
|
}
|