hw/sd: sd: Remove duplicated codes in single/multiple block read/write
[qemu/ar7.git] / qemu-options-wrapper.h
blob6f548e3922e6200b64c8d7d162cb7435591ac902
2 #if defined(QEMU_OPTIONS_GENERATE_ENUM)
4 #define DEF(option, opt_arg, opt_enum, opt_help, arch_mask) \
5 opt_enum,
6 #define DEFHEADING(text)
7 #define ARCHHEADING(text, arch_mask)
9 #elif defined(QEMU_OPTIONS_GENERATE_HELP)
11 #define DEF(option, opt_arg, opt_enum, opt_help, arch_mask) \
12 if ((arch_mask) & arch_type) \
13 fputs(opt_help, stdout);
15 #define ARCHHEADING(text, arch_mask) \
16 if ((arch_mask) & arch_type) \
17 puts(stringify(text));
19 #define DEFHEADING(text) ARCHHEADING(text, QEMU_ARCH_ALL)
21 #elif defined(QEMU_OPTIONS_GENERATE_OPTIONS)
23 #define DEF(option, opt_arg, opt_enum, opt_help, arch_mask) \
24 { option, opt_arg, opt_enum, arch_mask },
25 #define DEFHEADING(text)
26 #define ARCHHEADING(text, arch_mask)
28 #else
29 #error "qemu-options-wrapper.h included with no option defined"
30 #endif
32 #include "qemu-options.def"
34 #undef DEF
35 #undef DEFHEADING
36 #undef ARCHHEADING
38 #undef QEMU_OPTIONS_GENERATE_ENUM
39 #undef QEMU_OPTIONS_GENERATE_HELP
40 #undef QEMU_OPTIONS_GENERATE_OPTIONS