Commit 8c010042 authored by Max Kellermann's avatar Max Kellermann

system/FatalError: move code to Abort()

parent 8555b65c
......@@ -37,11 +37,18 @@
static constexpr Domain fatal_error_domain("fatal_error");
gcc_noreturn
static void
Abort()
{
exit(EXIT_FAILURE);
}
void
FatalError(const char *msg)
{
LogError(fatal_error_domain, msg);
exit(EXIT_FAILURE);
Abort();
}
void
......@@ -52,7 +59,7 @@ FormatFatalError(const char *fmt, ...)
LogFormatV(fatal_error_domain, LogLevel::ERROR, fmt, ap);
va_end(ap);
exit(EXIT_FAILURE);
Abort();
}
void
......@@ -84,7 +91,7 @@ FatalSystemError(const char *msg)
#endif
FormatError(fatal_error_domain, "%s: %s", msg, system_error);
exit(EXIT_FAILURE);
Abort();
}
void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment