]> git.proxmox.com Git - mirror_qemu.git/blob - qemu-options-wrapper.h
202f5af9b4b8e8cda60634a0d4f01d8a831e85a9
[mirror_qemu.git] / qemu-options-wrapper.h
1
2 #if defined(QEMU_OPTIONS_GENERATE_ENUM)
3
4 #define DEF(option, opt_arg, opt_enum, opt_help, arch_mask) \
5 opt_enum,
6 #define DEFHEADING(text)
7
8 #elif defined(QEMU_OPTIONS_GENERATE_HELP)
9
10 #define DEF(option, opt_arg, opt_enum, opt_help, arch_mask) \
11 opt_help
12 #define DEFHEADING(text) stringify(text) "\n"
13
14 #elif defined(QEMU_OPTIONS_GENERATE_OPTIONS)
15
16 #define DEF(option, opt_arg, opt_enum, opt_help, arch_mask) \
17 { option, opt_arg, opt_enum, arch_mask },
18 #define DEFHEADING(text)
19
20 #else
21 #error "qemu-options-wrapper.h included with no option defined"
22 #endif
23
24 #include "qemu-options.def"
25
26 #undef DEF
27 #undef DEFHEADING
28 #undef GEN_DOCS
29
30 #undef QEMU_OPTIONS_GENERATE_ENUM
31 #undef QEMU_OPTIONS_GENERATE_HELP
32 #undef QEMU_OPTIONS_GENERATE_OPTIONS