Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(361)

Side by Side Diff: fusl/src/exit/assert.c

Issue 1714623002: [fusl] clang-format fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: headers too Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #include <stdio.h> 1 #include <stdio.h>
2 #include <stdlib.h> 2 #include <stdlib.h>
3 3
4 void __assert_fail(const char *expr, const char *file, int line, const char *fun c) 4 void __assert_fail(const char* expr,
5 { 5 const char* file,
6 » fprintf(stderr, "Assertion failed: %s (%s: %s: %d)\n", expr, file, func, line); 6 int line,
7 » fflush(NULL); 7 const char* func) {
8 » abort(); 8 fprintf(stderr, "Assertion failed: %s (%s: %s: %d)\n", expr, file, func,
9 line);
10 fflush(NULL);
11 abort();
9 } 12 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698