[clutter/wip/evdev-tablet-support: 2/17] Add version macros for 1.28
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/wip/evdev-tablet-support: 2/17] Add version macros for 1.28
- Date: Tue, 5 Apr 2016 16:57:34 +0000 (UTC)
commit e26d7d92ec8e8edcedeb5c44c21baf9e589595c8
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Mar 29 15:18:09 2016 +0200
Add version macros for 1.28
clutter/clutter-macros.h | 18 ++++++++++++++++++
clutter/clutter-version.h.in | 10 ++++++++++
2 files changed, 28 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter-macros.h b/clutter/clutter-macros.h
index 3b5a18e..777ec45 100644
--- a/clutter/clutter-macros.h
+++ b/clutter/clutter-macros.h
@@ -388,4 +388,22 @@
# define CLUTTER_AVAILABLE_IN_1_26 _CLUTTER_EXTERN
#endif
+#if CLUTTER_VERSION_MIN_REQUIRED >= CLUTTER_VERSION_1_28
+# define CLUTTER_DEPRECATED_IN_1_28 CLUTTER_DEPRECATED
+# define CLUTTER_DEPRECATED_IN_1_28_FOR(f) CLUTTER_DEPRECATED_FOR(f)
+# define CLUTTER_MACRO_DEPRECATED_IN_1_28 CLUTTER_DEPRECATED_MACRO
+# define CLUTTER_MACRO_DEPRECATED_IN_1_28_FOR(f) CLUTTER_DEPRECATED_MACRO_FOR(f)
+#else
+# define CLUTTER_DEPRECATED_IN_1_28 _CLUTTER_EXTERN
+# define CLUTTER_DEPRECATED_IN_1_28_FOR(f) _CLUTTER_EXTERN
+# define CLUTTER_MACRO_DEPRECATED_IN_1_28
+# define CLUTTER_MACRO_DEPRECATED_IN_1_28_FOR(f)
+#endif
+
+#if CLUTTER_VERSION_MAX_ALLOWED < CLUTTER_VERSION_1_28
+# define CLUTTER_AVAILABLE_IN_1_28 CLUTTER_UNAVAILABLE(1, 28)
+#else
+# define CLUTTER_AVAILABLE_IN_1_28 _CLUTTER_EXTERN
+#endif
+
#endif /* __CLUTTER_MACROS_H__ */
diff --git a/clutter/clutter-version.h.in b/clutter/clutter-version.h.in
index b7a86b6..d5b6196 100644
--- a/clutter/clutter-version.h.in
+++ b/clutter/clutter-version.h.in
@@ -264,6 +264,16 @@ G_BEGIN_DECLS
*/
#define CLUTTER_VERSION_1_26 (G_ENCODE_VERSION (1, 26))
+/**
+ * CLUTTER_VERSION_1_28:
+ *
+ * A macro that evaluates to the 1.28 version of Clutter, in a format
+ * that can be used by the C pre-processor.
+ *
+ * Since: 1.28
+ */
+#define CLUTTER_VERSION_1_28 (G_ENCODE_VERSION (1, 28))
+
/* 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]