CatchException(&exception); \
(void) DestroyExceptionInfo(&exception); \
MagickCoreTerminus(); \
- _exit(1); \
+ _exit(severity); \
}
#define ThrowFileException(exception,severity,tag,context) \
{ \
%
% o severity: Specifies the numeric error category.
%
-% o reason: Specifies the reason to display before terminating the
-% program.
+% o reason: Specifies the reason to display before terminating the program.
%
% o description: Specifies any description to the reason.
%
*/
-static void DefaultFatalErrorHandler(
- const ExceptionType magick_unused(severity),
+static void DefaultFatalErrorHandler(const ExceptionType severity,
const char *reason,const char *description)
{
if (reason == (char *) NULL)
(void) FormatLocaleFile(stderr,".\n");
(void) fflush(stderr);
MagickCoreTerminus();
- exit(1);
+ exit(severity);
}
\f
/*
extern MagickExport MagickBooleanType
ThrowException(ExceptionInfo *,const ExceptionType,const char *,
const char *),
- ThrowMagickExceptionList(ExceptionInfo *,const char *,const char *,const size_t,
- const ExceptionType,const char *,const char *,va_list),
+ ThrowMagickExceptionList(ExceptionInfo *,const char *,const char *,
+ const size_t,const ExceptionType,const char *,const char *,va_list),
ThrowMagickException(ExceptionInfo *,const char *,const char *,const size_t,
const ExceptionType,const char *,const char *,...)
magick_attribute((__format__ (__printf__,7,8)));