Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
8c010042
Commit
8c010042
authored
Oct 30, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
system/FatalError: move code to Abort()
parent
8555b65c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
FatalError.cxx
src/system/FatalError.cxx
+10
-3
No files found.
src/system/FatalError.cxx
View file @
8c010042
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment