2011-12-19 10:19:30 +04:00
|
|
|
|
|
|
|
#if defined(QEMU_OPTIONS_GENERATE_ENUM)
|
|
|
|
|
|
|
|
#define DEF(option, opt_arg, opt_enum, opt_help, arch_mask) \
|
|
|
|
opt_enum,
|
|
|
|
#define DEFHEADING(text)
|
2011-12-19 10:19:31 +04:00
|
|
|
#define ARCHHEADING(text, arch_mask)
|
2011-12-19 10:19:30 +04:00
|
|
|
|
|
|
|
#elif defined(QEMU_OPTIONS_GENERATE_HELP)
|
|
|
|
|
2011-12-19 10:19:31 +04:00
|
|
|
#define DEF(option, opt_arg, opt_enum, opt_help, arch_mask) \
|
|
|
|
if ((arch_mask) & arch_type) \
|
|
|
|
fputs(opt_help, stdout);
|
|
|
|
|
|
|
|
#define ARCHHEADING(text, arch_mask) \
|
|
|
|
if ((arch_mask) & arch_type) \
|
2017-10-02 17:03:00 +03:00
|
|
|
puts(stringify(text));
|
2011-12-19 10:19:31 +04:00
|
|
|
|
|
|
|
#define DEFHEADING(text) ARCHHEADING(text, QEMU_ARCH_ALL)
|
2011-12-19 10:19:30 +04:00
|
|
|
|
|
|
|
#elif defined(QEMU_OPTIONS_GENERATE_OPTIONS)
|
|
|
|
|
|
|
|
#define DEF(option, opt_arg, opt_enum, opt_help, arch_mask) \
|
|
|
|
{ option, opt_arg, opt_enum, arch_mask },
|
|
|
|
#define DEFHEADING(text)
|
2011-12-19 10:19:31 +04:00
|
|
|
#define ARCHHEADING(text, arch_mask)
|
2011-12-19 10:19:30 +04:00
|
|
|
|
|
|
|
#else
|
|
|
|
#error "qemu-options-wrapper.h included with no option defined"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "qemu-options.def"
|
|
|
|
|
|
|
|
#undef DEF
|
|
|
|
#undef DEFHEADING
|
2011-12-19 10:19:31 +04:00
|
|
|
#undef ARCHHEADING
|
2011-12-19 10:19:30 +04:00
|
|
|
#undef GEN_DOCS
|
|
|
|
|
|
|
|
#undef QEMU_OPTIONS_GENERATE_ENUM
|
|
|
|
#undef QEMU_OPTIONS_GENERATE_HELP
|
|
|
|
#undef QEMU_OPTIONS_GENERATE_OPTIONS
|