qemu-options-wrapper.h 763 B

1234567891011121314151617181920212223242526272829303132
  1. #if defined(QEMU_OPTIONS_GENERATE_ENUM)
  2. #define DEF(option, opt_arg, opt_enum, opt_help, arch_mask) \
  3. opt_enum,
  4. #define DEFHEADING(text)
  5. #elif defined(QEMU_OPTIONS_GENERATE_HELP)
  6. #define DEF(option, opt_arg, opt_enum, opt_help, arch_mask) \
  7. opt_help
  8. #define DEFHEADING(text) stringify(text) "\n"
  9. #elif defined(QEMU_OPTIONS_GENERATE_OPTIONS)
  10. #define DEF(option, opt_arg, opt_enum, opt_help, arch_mask) \
  11. { option, opt_arg, opt_enum, arch_mask },
  12. #define DEFHEADING(text)
  13. #else
  14. #error "qemu-options-wrapper.h included with no option defined"
  15. #endif
  16. #include "qemu-options.def"
  17. #undef DEF
  18. #undef DEFHEADING
  19. #undef GEN_DOCS
  20. #undef QEMU_OPTIONS_GENERATE_ENUM
  21. #undef QEMU_OPTIONS_GENERATE_HELP
  22. #undef QEMU_OPTIONS_GENERATE_OPTIONS