mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-02 03:53:50 +00:00
added libraries: opus flac libsndfile updated: libvorbis libogg openal - Everything works as expected for now. Bare in mind libsndfile needed the check for whether or not it could find the xiph libraries removed in order for this to work.
26 lines
555 B
C++
26 lines
555 B
C++
#include "config.h"
|
|
|
|
#include "utils.h"
|
|
|
|
#include <cassert>
|
|
#include <exception>
|
|
|
|
#include "core/logging.h"
|
|
|
|
|
|
void eax_log_exception(const char *message) noexcept
|
|
{
|
|
const auto exception_ptr = std::current_exception();
|
|
assert(exception_ptr);
|
|
|
|
try {
|
|
std::rethrow_exception(exception_ptr);
|
|
}
|
|
catch(const std::exception& ex) {
|
|
const auto ex_message = ex.what();
|
|
ERR("%s %s\n", message ? message : "", ex_message);
|
|
}
|
|
catch(...) {
|
|
ERR("%s %s\n", message ? message : "", "Generic exception.");
|
|
}
|
|
}
|