Skip to content

Commit

Permalink
Use CARLA_CATCH_UNWIND in the base utils
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Jun 10, 2020
1 parent 025c8be commit 1b5080d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions source/utils/CarlaUtils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -128,7 +128,7 @@ void carla_debug(const char* const fmt, ...) noexcept
}

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

Expand All @@ -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 (...) {}
}

/*
Expand All @@ -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 (...) {}
}

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

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

// --------------------------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 1b5080d

Please sign in to comment.