From 559ada6a8fe16b5dded7acebffd0d46cd272867f Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 9 Aug 2005 18:16:23 +0200 Subject: new unified pdf tool --- base/base_error.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'base/base_error.c') diff --git a/base/base_error.c b/base/base_error.c index e9823f14..e0bf1567 100644 --- a/base/base_error.c +++ b/base/base_error.c @@ -53,7 +53,12 @@ fz_throw0(const char *func, const char *file, int line, char *fmt, ...) va_end(ap); if (getenv("BOMB")) - fz_abort(eo); + { + fflush(stdout); + fprintf(stderr, "%s:%d: %s(): %s\n", eo->file, eo->line, eo->func, eo->msg); + fflush(stderr); + abort(); + } return eo; } @@ -67,12 +72,3 @@ fz_droperror(fz_error *eo) fz_free(eo); } -void -fz_abort(fz_error *eo) -{ - fflush(stdout); - fprintf(stderr, "%s:%d: %s(): %s\n", eo->file, eo->line, eo->func, eo->msg); - fflush(stderr); - abort(); -} - -- cgit v1.2.3