clang-format
This commit is contained in:
@@ -38,13 +38,11 @@
|
||||
* Print a message to stderr and bail out of the program.
|
||||
*/
|
||||
|
||||
void
|
||||
__bad_assert(const char *file, int line, const char *expr)
|
||||
{
|
||||
char buf[256];
|
||||
snprintf(buf, sizeof(buf), "Assertion failed: %s (%s line %d)\n",
|
||||
expr, file, line);
|
||||
void __bad_assert(const char *file, int line, const char *expr) {
|
||||
char buf[256];
|
||||
snprintf(buf, sizeof(buf), "Assertion failed: %s (%s line %d)\n", expr, file,
|
||||
line);
|
||||
|
||||
write(STDERR_FILENO, buf, strlen(buf));
|
||||
abort();
|
||||
write(STDERR_FILENO, buf, strlen(buf));
|
||||
abort();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user