µGFX library fork

gqueue_rules.h 975B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * This file is subject to the terms of the GFX License. If a copy of
  3. * the license was not distributed with this file, you can obtain one at:
  4. *
  5. * http://ugfx.org/license.html
  6. */
  7. /**
  8. * @file src/gqueue/gqueue_rules.h
  9. * @brief GQUEUE safety rules header file.
  10. *
  11. * @addtogroup GQUEUE
  12. * @{
  13. */
  14. #ifndef _GQUEUE_RULES_H
  15. #define _GQUEUE_RULES_H
  16. #if GFX_USE_GQUEUE
  17. #if GQUEUE_NEED_BUFFERS && !GQUEUE_NEED_GSYNC
  18. #if GFX_DISPLAY_RULE_WARNINGS
  19. #if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
  20. #warning "GQUEUE: GQUEUE_NEED_GSYNC is required if GQUEUE_NEED_BUFFERS is TRUE. It has been turned on for you."
  21. #elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
  22. COMPILER_WARNING("GQUEUE: GQUEUE_NEED_GSYNC is required if GQUEUE_NEED_BUFFERS is TRUE. It has been turned on for you.")
  23. #endif
  24. #endif
  25. #undef GQUEUE_NEED_GSYNC
  26. #define GQUEUE_NEED_GSYNC TRUE
  27. #endif
  28. #endif
  29. #endif /* _GQUEUE_RULES_H */
  30. /** @} */