(((i) & 0xfff) == 0) || \
((MagickOffsetType) (i) == ((MagickOffsetType) (span)-1))))
#define RadiansToDegrees(x) (180.0*(x)/MagickPI)
+#define ThrowWandFatalException(severity,tag,context) \
+{ \
+ ExceptionInfo \
+ exception; \
+ \
+ GetExceptionInfo(&exception); \
+ (void) ThrowMagickException(&exception,GetMagickModule(),severity,tag, \
+ "`%s'",context); \
+ CatchException(&exception); \
+ (void) DestroyExceptionInfo(&exception); \
+ MagickWandTerminus(); \
+ _exit((int) (severity-FatalErrorException)+1); \
+}
struct _MagickWand
{
#define PATH_MAX 4096
#endif
-/*
- Exception defines.
-*/
-#define ThrowWandFatalException(severity,tag,context) \
-{ \
- ExceptionInfo \
- *fatal_exception; \
- \
- fatal_exception=AcquireExceptionInfo(); \
- (void) ThrowMagickException(fatal_exception,GetMagickModule(),severity,tag, \
- "`%s'",(context)); \
- CatchException(fatal_exception); \
- fatal_exception=DestroyExceptionInfo(fatal_exception); \
-}
-
/*
Magick defines.
*/