18 #ifndef MAGICKWAND_MAGICK_WAND_PRIVATE_H
19 #define MAGICKWAND_MAGICK_WAND_PRIVATE_H
21 #if defined(__cplusplus) || defined(c_plusplus)
25 #define MagickWandId "MagickWand"
26 #define QuantumTick(i,span) ((MagickBooleanType) ((((i) & ((i)-1)) == 0) || \
27 (((i) & 0xfff) == 0) || \
28 ((MagickOffsetType) (i) == ((MagickOffsetType) (span)-1))))
29 #define ThrowWandException(severity,tag,context) \
31 (void) ThrowMagickException(wand->exception,GetMagickModule(),severity, \
32 tag,"`%s'",context); \
33 return(MagickFalse); \
35 #define ThrowWandFatalException(severity,tag,context) \
40 fatal_exception=AcquireExceptionInfo(); \
41 (void) ThrowMagickException(fatal_exception,GetMagickModule(),severity,tag, \
43 CatchException(fatal_exception); \
44 (void) DestroyExceptionInfo(fatal_exception); \
45 MagickWandTerminus(); \
46 _exit((int) (severity-FatalErrorException)+1); \
49 static inline void CheckMagickCoreCompatibility()
57 quantum=GetMagickQuantumDepth(&depth);
58 if (depth != MAGICKCORE_QUANTUM_DEPTH)
59 ThrowWandFatalException(WandError,
"QuantumDepthMismatch",quantum);
68 name[MagickPathExtent];
88 #if defined(__cplusplus) || defined(c_plusplus)