Add 1.18 version macros

We're still going to do a 1.x release cycle.
This commit is contained in:
Emmanuele Bassi 2013-10-10 13:31:28 +01:00
parent 32ccff8525
commit 0c39138200
2 changed files with 25 additions and 1 deletions

View File

@ -290,4 +290,18 @@
# define CLUTTER_AVAILABLE_IN_1_16
#endif
#if CLUTTER_VERSION_MIN_REQUIRED >= CLUTTER_VERSION_1_18
# define CLUTTER_DEPRECATED_IN_1_18 CLUTTER_DEPRECATED
# define CLUTTER_DEPRECATED_IN_1_18_FOR(f) CLUTTER_DEPRECATED_FOR(f)
#else
# define CLUTTER_DEPRECATED_IN_1_18
# define CLUTTER_DEPRECATED_IN_1_18_FOR(f)
#endif
#if CLUTTER_VERSION_MAX_ALLOWED < CLUTTER_VERSION_1_18
# define CLUTTER_AVAILABLE_IN_1_18 CLUTTER_UNAVAILABLE(1, 18)
#else
# define CLUTTER_AVAILABLE_IN_1_18
#endif
#endif /* __CLUTTER_MACROS_H__ */

View File

@ -210,10 +210,20 @@ G_BEGIN_DECLS
* A macro that evaluates to the 1.16 version of Clutter, in a format
* that can be used by the C pre-processor.
*
* Since: 1.14
* Since: 1.16
*/
#define CLUTTER_VERSION_1_16 (G_ENCODE_VERSION (1, 16))
/**
* CLUTTER_VERSION_1_18:
*
* A macro that evaluates to the 1.18 version of Clutter, in a format
* that can be used by the C pre-processor.
*
* Since: 1.18
*/
#define CLUTTER_VERSION_1_18 (G_ENCODE_VERSION (1, 18))
/* evaluates to the current stable version; for development cycles,
* this means the next stable target
*/