]> git.proxmox.com Git - mirror_qemu.git/blame - qemu-options-wrapper.h
vl.c: Move option generation logic into a wrapper file
[mirror_qemu.git] / qemu-options-wrapper.h
CommitLineData
77bd1119
ME
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