You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.0KB

  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. #define ARCHHEADING(text, arch_mask)
  6. #elif defined(QEMU_OPTIONS_GENERATE_HELP)
  7. #define DEF(option, opt_arg, opt_enum, opt_help, arch_mask) \
  8. if ((arch_mask) & arch_type) \
  9. fputs(opt_help, stdout);
  10. #define ARCHHEADING(text, arch_mask) \
  11. if ((arch_mask) & arch_type) \
  12. puts(stringify(text));
  13. #define DEFHEADING(text) ARCHHEADING(text, QEMU_ARCH_ALL)
  14. #elif defined(QEMU_OPTIONS_GENERATE_OPTIONS)
  15. #define DEF(option, opt_arg, opt_enum, opt_help, arch_mask) \
  16. { option, opt_arg, opt_enum, arch_mask },
  17. #define DEFHEADING(text)
  18. #define ARCHHEADING(text, arch_mask)
  19. #else
  20. #error "qemu-options-wrapper.h included with no option defined"
  21. #endif
  22. #include "qemu-options.def"
  23. #undef DEF
  24. #undef DEFHEADING
  25. #undef ARCHHEADING
  26. #undef QEMU_OPTIONS_GENERATE_ENUM
  27. #undef QEMU_OPTIONS_GENERATE_HELP
  28. #undef QEMU_OPTIONS_GENERATE_OPTIONS