mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
* BugFix: Correct convexDecomp compilation by setting the LINUX flag when necessary.
* BugFix: Update OpenAL to correct a compilation error on Linux.
This commit is contained in:
parent
e071f1d901
commit
7380161054
234 changed files with 30864 additions and 7523 deletions
36
Engine/lib/openal-soft/al/eax_utils.cpp
Normal file
36
Engine/lib/openal-soft/al/eax_utils.cpp
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
#include "config.h"
|
||||
|
||||
#include "eax_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);
|
||||
|
||||
if (message)
|
||||
{
|
||||
ERR("%s\n", message);
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
std::rethrow_exception(exception_ptr);
|
||||
}
|
||||
catch (const std::exception& ex)
|
||||
{
|
||||
const auto ex_message = ex.what();
|
||||
ERR("%s\n", ex_message);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
ERR("%s\n", "Generic exception.");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue