18#ifndef MAGICKWAND_WANDCLI_PRIVATE_H
19#define MAGICKWAND_WANDCLI_PRIVATE_H
21#if defined(__cplusplus) || defined(c_plusplus)
25#define CLIWandException(severity,tag,option) \
26 (void) CLIThrowException(cli_wand,GetMagickModule(),severity,tag, \
29#define CLIWandExceptionArg(severity,tag,option,arg) \
30 (void) CLIThrowException(cli_wand,GetMagickModule(),severity,tag, \
31 "'%s' '%s'",option, arg)
33#define CLIWandWarnReplaced(message) \
34 if ( (cli_wand->process_flags & ProcessWarnDeprecated) != 0 ) \
35 (void) CLIThrowException(cli_wand,GetMagickModule(),OptionWarning, \
36 "ReplacedOption", "'%s', use \"%s\"",option,message)
38#define CLIWandExceptionFile(severity,tag,context) \
39{ char *message=GetExceptionMessage(errno); \
40 (void) CLIThrowException(cli_wand,GetMagickModule(),severity,tag, \
41 "'%s': %s",context,message); \
42 message=DestroyString(message); \
45#define CLIWandExceptionBreak(severity,tag,option) \
46 { CLIWandException(severity,tag,option); break; }
48#define CLIWandExceptionReturn(severity,tag,option) \
49 { CLIWandException(severity,tag,option); return; }
51#define CLIWandExceptArgBreak(severity,tag,option,arg) \
52 { CLIWandExceptionArg(severity,tag,option,arg); break; }
54#define CLIWandExceptArgReturn(severity,tag,option,arg) \
55 { CLIWandExceptionArg(severity,tag,option,arg); return; }
63 ProcessImplicitRead = 0x0001,
67 ProcessInterpretProperties = 0x0010,
70 ProcessExitOption = 0x0100,
71 ProcessScriptOption = 0x0200,
72 ProcessReadOption = 0x0400,
73 ProcessWarnDeprecated = 0x0800,
76 ProcessOneOptionOnly = 0x4000,
77 ProcessImplicitWrite = 0x8000,
80 MagickCommandOptionFlags = 0x8FFF,
81 ConvertCommandOptionFlags = 0x800F,
82 MagickScriptArgsFlags = 0x000F,
136#if defined(__cplusplus) || defined(c_plusplus)