[clutter] Add version-related macros for 1.16



commit 23707ac2426b48775cb8a5f54dd9e2458c5576fe
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Wed Mar 20 17:23:02 2013 -0300

    Add version-related macros for 1.16

 clutter/clutter-macros.h     |   14 ++++++++++++++
 clutter/clutter-version.h.in |   10 ++++++++++
 2 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter-macros.h b/clutter/clutter-macros.h
index 6aa8995..db797d9 100644
--- a/clutter/clutter-macros.h
+++ b/clutter/clutter-macros.h
@@ -276,4 +276,18 @@
 # define CLUTTER_AVAILABLE_IN_1_14
 #endif
 
+#if CLUTTER_VERSION_MIN_REQUIRED >= CLUTTER_VERSION_1_16
+# define CLUTTER_DEPRECATED_IN_1_16             CLUTTER_DEPRECATED
+# define CLUTTER_DEPRECATED_IN_1_16_FOR(f)      CLUTTER_DEPRECATED_FOR(f)
+#else
+# define CLUTTER_DEPRECATED_IN_1_16
+# define CLUTTER_DEPRECATED_IN_1_16_FOR(f)
+#endif
+
+#if CLUTTER_VERSION_MAX_ALLOWED < CLUTTER_VERSION_1_16
+# define CLUTTER_AVAILABLE_IN_1_16              CLUTTER_UNAVAILABLE(1, 16)
+#else
+# define CLUTTER_AVAILABLE_IN_1_16
+#endif
+
 #endif /* __CLUTTER_MACROS_H__ */
diff --git a/clutter/clutter-version.h.in b/clutter/clutter-version.h.in
index ec66b22..a4703e1 100644
--- a/clutter/clutter-version.h.in
+++ b/clutter/clutter-version.h.in
@@ -204,6 +204,16 @@ G_BEGIN_DECLS
  */
 #define CLUTTER_VERSION_1_14    (G_ENCODE_VERSION (1, 14))
 
+/**
+ * CLUTTER_VERSION_1_16:
+ *
+ * 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
+ */
+#define CLUTTER_VERSION_1_16    (G_ENCODE_VERSION (1, 16))
+
 /* evaluates to the current stable version; for development cycles,
  * this means the next stable target
  */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]