Check for a minimum PipeWire version
[openal-soft.git] / al / eax_utils.cpp
blob67389de42003ff7a073ed89cdf91570e097bf50f
1 #include "config.h"
3 #include "eax_utils.h"
5 #include <cassert>
6 #include <exception>
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);
18 if (message)
20 ERR("%s\n", message);
23 try
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);
32 catch (...)
34 ERR("%s\n", "Generic exception.");