Browse Source

Use CARLA_CATCH_UNWIND in the base utils

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.2.0-RC1
falkTX 4 years ago
parent
commit
cbe0d3d48b
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      source/utils/CarlaUtils.hpp

+ 5
- 5
source/utils/CarlaUtils.hpp View File

@@ -85,7 +85,7 @@ FILE* __carla_fopen(const char* const filename, FILE* const fallback) noexcept


try { try {
ret = std::fopen(filename, "a+"); ret = std::fopen(filename, "a+");
} catch (...) {}
} CARLA_CATCH_UNWIND catch (...) {}


if (ret == nullptr) if (ret == nullptr)
ret = fallback; ret = fallback;
@@ -128,7 +128,7 @@ void carla_debug(const char* const fmt, ...) noexcept
} }


::va_end(args); ::va_end(args);
} catch (...) {}
} CARLA_CATCH_UNWIND catch (...) {}
} }
#endif #endif


@@ -148,7 +148,7 @@ void carla_stdout(const char* const fmt, ...) noexcept
if (output != stdout) if (output != stdout)
std::fflush(output); std::fflush(output);
::va_end(args); ::va_end(args);
} catch (...) {}
} CARLA_CATCH_UNWIND catch (...) {}
} }


/* /*
@@ -167,7 +167,7 @@ void carla_stderr(const char* const fmt, ...) noexcept
if (output != stderr) if (output != stderr)
std::fflush(output); std::fflush(output);
::va_end(args); ::va_end(args);
} catch (...) {}
} CARLA_CATCH_UNWIND catch (...) {}
} }


/* /*
@@ -196,7 +196,7 @@ void carla_stderr2(const char* const fmt, ...) noexcept
} }


::va_end(args); ::va_end(args);
} catch (...) {}
} CARLA_CATCH_UNWIND catch (...) {}
} }


// -------------------------------------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------------------------------------


Loading…
Cancel
Save