clang-format

This commit is contained in:
2024-09-10 13:03:02 -04:00
parent 53c617d779
commit d66450e427
381 changed files with 28864 additions and 34170 deletions

View File

@@ -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();
}