This commit is contained in:
2025-10-05 08:22:44 -04:00
parent 7d2843cd37
commit 40665c96ea
4 changed files with 68 additions and 13 deletions

View File

@@ -59,9 +59,9 @@ void fatalf(const char *format, ...)
va_start(args, format);
if (__check()) {
fprintf(stderr, "%sfatal%s: ", ERROR, RESET);
fprintf(stderr, "%sfatal error%s: ", ERROR, RESET);
} else {
fputs("fatal: ", stderr);
fputs("fatal error: ", stderr);
}
vfprintf(stderr, format, args);
@@ -69,6 +69,7 @@ void fatalf(const char *format, ...)
va_end(args);
fputs("program terminated.\n", stderr);
exit(EXIT_FAILURE);
}
void warnf(const char *format, ...)