From 1b5080dff02b1e751e32f0582e4aee7bc2c74a67 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 17 May 2020 21:41:08 +0100 Subject: [PATCH] Use CARLA_CATCH_UNWIND in the base utils Signed-off-by: falkTX --- source/utils/CarlaUtils.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/utils/CarlaUtils.hpp b/source/utils/CarlaUtils.hpp index a7a41d1a81..45eebb5ad7 100644 --- a/source/utils/CarlaUtils.hpp +++ b/source/utils/CarlaUtils.hpp @@ -85,7 +85,7 @@ FILE* __carla_fopen(const char* const filename, FILE* const fallback) noexcept try { ret = std::fopen(filename, "a+"); - } catch (...) {} + } CARLA_CATCH_UNWIND catch (...) {} if (ret == nullptr) ret = fallback; @@ -128,7 +128,7 @@ void carla_debug(const char* const fmt, ...) noexcept } ::va_end(args); - } catch (...) {} + } CARLA_CATCH_UNWIND catch (...) {} } #endif @@ -148,7 +148,7 @@ void carla_stdout(const char* const fmt, ...) noexcept if (output != stdout) std::fflush(output); ::va_end(args); - } catch (...) {} + } CARLA_CATCH_UNWIND catch (...) {} } /* @@ -167,7 +167,7 @@ void carla_stderr(const char* const fmt, ...) noexcept if (output != stderr) std::fflush(output); ::va_end(args); - } catch (...) {} + } CARLA_CATCH_UNWIND catch (...) {} } /* @@ -196,7 +196,7 @@ void carla_stderr2(const char* const fmt, ...) noexcept } ::va_end(args); - } catch (...) {} + } CARLA_CATCH_UNWIND catch (...) {} } // --------------------------------------------------------------------------------------------------------------------