version: Add 1.12 version macros

This commit is contained in:
Emmanuele Bassi 2012-03-22 10:11:11 +00:00
parent 22fad59c26
commit 1b3777f169
2 changed files with 24 additions and 0 deletions

View File

@ -248,6 +248,20 @@
# define CLUTTER_AVAILABLE_IN_1_10 # define CLUTTER_AVAILABLE_IN_1_10
#endif #endif
#if CLUTTER_VERSION_MIN_REQUIRED >= CLUTTER_VERSION_1_12
# define CLUTTER_DEPRECATED_IN_1_12 CLUTTER_DEPRECATED
# define CLUTTER_DEPRECATED_IN_1_12_FOR(f) CLUTTER_DEPRECATED_FOR(f)
#else
# define CLUTTER_DEPRECATED_IN_1_12
# define CLUTTER_DEPRECATED_IN_1_12_FOR(f)
#endif
#if CLUTTER_VERSION_MAX_ALLOWED < CLUTTER_VERSION_1_12
# define CLUTTER_AVAILABLE_IN_1_12 CLUTTER_UNAVAILABLE(1, 12)
#else
# define CLUTTER_AVAILABLE_IN_1_12
#endif
/** /**
* CLUTTER_CAIRO_FORMAT_ARGB32: * CLUTTER_CAIRO_FORMAT_ARGB32:
* *

View File

@ -184,6 +184,16 @@ G_BEGIN_DECLS
*/ */
#define CLUTTER_VERSION_1_10 (G_ENCODE_VERSION (1, 10)) #define CLUTTER_VERSION_1_10 (G_ENCODE_VERSION (1, 10))
/**
* CLUTTER_VERSION_1_12:
*
* A macro that evaluates to the 1.12 version of Clutter, in a format
* that can be used by the C pre-processor.
*
* Since: 1.12
*/
#define CLUTTER_VERSION_1_12 (G_ENCODE_VERSION (1, 12))
/* evaluates to the current stable version; for development cycles, /* evaluates to the current stable version; for development cycles,
* this means the next stable target * this means the next stable target
*/ */