version 2.8
gqueue_rules.h
Go to the documentation of this file.
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 /**
9  * @file src/gqueue/gqueue_rules.h
10  * @brief GQUEUE safety rules header file.
11  *
12  * @addtogroup GQUEUE
13  * @{
14  */
15 
16 #ifndef _GQUEUE_RULES_H
17 #define _GQUEUE_RULES_H
18 
19 #if GFX_USE_GQUEUE
20  #if GQUEUE_NEED_BUFFERS && !GQUEUE_NEED_GSYNC
21  #if GFX_DISPLAY_RULE_WARNINGS
22  #if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT
23  #warning "GQUEUE: GQUEUE_NEED_GSYNC is required if GQUEUE_NEED_BUFFERS is TRUE. It has been turned on for you."
24  #elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO
25  COMPILER_WARNING("GQUEUE: GQUEUE_NEED_GSYNC is required if GQUEUE_NEED_BUFFERS is TRUE. It has been turned on for you.")
26  #endif
27  #endif
28  #undef GQUEUE_NEED_GSYNC
29  #define GQUEUE_NEED_GSYNC TRUE
30  #endif
31 #endif
32 
33 #endif /* _GQUEUE_RULES_H */
34 /** @} */