Permalink
Browse files

v1.10.0 availability macros

  • Loading branch information...
1 parent 31100d3 commit bdcf99f01982ea38a98d27abfe0639c57c024463 @groue committed Feb 16, 2012
@@ -24,16 +24,17 @@
/*
* Set up standard GRMustache versions
*/
-#define GRMUSTACHE_VERSION_1_0 1000
-#define GRMUSTACHE_VERSION_1_1 1010
-#define GRMUSTACHE_VERSION_1_2 1020
-#define GRMUSTACHE_VERSION_1_3 1030
-#define GRMUSTACHE_VERSION_1_4 1040
-#define GRMUSTACHE_VERSION_1_5 1050
-#define GRMUSTACHE_VERSION_1_6 1060
-#define GRMUSTACHE_VERSION_1_7 1070
-#define GRMUSTACHE_VERSION_1_8 1080
-#define GRMUSTACHE_VERSION_1_9 1090
+#define GRMUSTACHE_VERSION_1_0 1000
+#define GRMUSTACHE_VERSION_1_1 1010
+#define GRMUSTACHE_VERSION_1_2 1020
+#define GRMUSTACHE_VERSION_1_3 1030
+#define GRMUSTACHE_VERSION_1_4 1040
+#define GRMUSTACHE_VERSION_1_5 1050
+#define GRMUSTACHE_VERSION_1_6 1060
+#define GRMUSTACHE_VERSION_1_7 1070
+#define GRMUSTACHE_VERSION_1_8 1080
+#define GRMUSTACHE_VERSION_1_9 1090
+#define GRMUSTACHE_VERSION_1_10 1100
@@ -45,13 +46,13 @@
#endif
/*
- * if max GRMustacheVersion not specified, assume largerof(1.9, min)
+ * if max GRMustacheVersion not specified, assume largerof(1.10, min)
*/
#ifndef GRMUSTACHE_VERSION_MAX_ALLOWED
-#if GRMUSTACHE_VERSION_MIN_REQUIRED > GRMUSTACHE_VERSION_1_9
+#if GRMUSTACHE_VERSION_MIN_REQUIRED > GRMUSTACHE_VERSION_1_10
#define GRMUSTACHE_VERSION_MAX_ALLOWED GRMUSTACHE_VERSION_MIN_REQUIRED
#else
-#define GRMUSTACHE_VERSION_MAX_ALLOWED GRMUSTACHE_VERSION_1_9
+#define GRMUSTACHE_VERSION_MAX_ALLOWED GRMUSTACHE_VERSION_1_10
#endif
#endif
@@ -1052,3 +1053,162 @@
#endif
+
+
+
+
+/*
+ * AVAILABLE_GRMUSTACHE_VERSION_1_10_AND_LATER
+ *
+ * Used on declarations introduced in GRMustache 1.10
+ */
+#if GRMUSTACHE_VERSION_MAX_ALLOWED < GRMUSTACHE_VERSION_1_10
+#define AVAILABLE_GRMUSTACHE_VERSION_1_10_AND_LATER UNAVAILABLE_ATTRIBUTE
+#elif GRMUSTACHE_VERSION_MIN_REQUIRED < GRMUSTACHE_VERSION_1_10
+#define AVAILABLE_GRMUSTACHE_VERSION_1_10_AND_LATER WEAK_IMPORT_ATTRIBUTE
+#else
+#define AVAILABLE_GRMUSTACHE_VERSION_1_10_AND_LATER
+#endif
+
+/*
+ * AVAILABLE_GRMUSTACHE_VERSION_1_10_AND_LATER_BUT_DEPRECATED
+ *
+ * Used on declarations introduced in GRMustache 1.10,
+ * and deprecated in GRMustache 1.10
+ */
+#if GRMUSTACHE_VERSION_MIN_REQUIRED >= GRMUSTACHE_VERSION_1_10
+#define AVAILABLE_GRMUSTACHE_VERSION_1_10_AND_LATER_BUT_DEPRECATED DEPRECATED_ATTRIBUTE
+#else
+#define AVAILABLE_GRMUSTACHE_VERSION_1_10_AND_LATER_BUT_DEPRECATED AVAILABLE_GRMUSTACHE_VERSION_1_10_AND_LATER
+#endif
+
+/*
+ * AVAILABLE_GRMUSTACHE_VERSION_1_0_AND_LATER_BUT_DEPRECATED_IN_GRMUSTACHE_VERSION_1_10
+ *
+ * Used on declarations introduced in GRMustache 1.0,
+ * but later deprecated in GRMustache 1.10
+ */
+#if GRMUSTACHE_VERSION_MIN_REQUIRED >= GRMUSTACHE_VERSION_1_10
+#define AVAILABLE_GRMUSTACHE_VERSION_1_0_AND_LATER_BUT_DEPRECATED_IN_GRMUSTACHE_VERSION_1_10 DEPRECATED_ATTRIBUTE
+#else
+#define AVAILABLE_GRMUSTACHE_VERSION_1_0_AND_LATER_BUT_DEPRECATED_IN_GRMUSTACHE_VERSION_1_10 AVAILABLE_GRMUSTACHE_VERSION_1_0_AND_LATER
+#endif
+
+/*
+ * AVAILABLE_GRMUSTACHE_VERSION_1_1_AND_LATER_BUT_DEPRECATED_IN_GRMUSTACHE_VERSION_1_10
+ *
+ * Used on declarations introduced in GRMustache 1.1,
+ * but later deprecated in GRMustache 1.10
+ */
+#if GRMUSTACHE_VERSION_MIN_REQUIRED >= GRMUSTACHE_VERSION_1_10
+#define AVAILABLE_GRMUSTACHE_VERSION_1_1_AND_LATER_BUT_DEPRECATED_IN_GRMUSTACHE_VERSION_1_10 DEPRECATED_ATTRIBUTE
+#else
+#define AVAILABLE_GRMUSTACHE_VERSION_1_1_AND_LATER_BUT_DEPRECATED_IN_GRMUSTACHE_VERSION_1_10 AVAILABLE_GRMUSTACHE_VERSION_1_1_AND_LATER
+#endif
+
+/*
+ * AVAILABLE_GRMUSTACHE_VERSION_1_2_AND_LATER_BUT_DEPRECATED_IN_GRMUSTACHE_VERSION_1_10
+ *
+ * Used on declarations introduced in GRMustache 1.2,
+ * but later deprecated in GRMustache 1.10
+ */
+#if GRMUSTACHE_VERSION_MIN_REQUIRED >= GRMUSTACHE_VERSION_1_10
+#define AVAILABLE_GRMUSTACHE_VERSION_1_2_AND_LATER_BUT_DEPRECATED_IN_GRMUSTACHE_VERSION_1_10 DEPRECATED_ATTRIBUTE
+#else
+#define AVAILABLE_GRMUSTACHE_VERSION_1_2_AND_LATER_BUT_DEPRECATED_IN_GRMUSTACHE_VERSION_1_10 AVAILABLE_GRMUSTACHE_VERSION_1_2_AND_LATER
+#endif
+
+/*
+ * AVAILABLE_GRMUSTACHE_VERSION_1_3_AND_LATER_BUT_DEPRECATED_IN_GRMUSTACHE_VERSION_1_10
+ *
+ * Used on declarations introduced in GRMustache 1.3,
+ * but later deprecated in GRMustache 1.10
+ */
+#if GRMUSTACHE_VERSION_MIN_REQUIRED >= GRMUSTACHE_VERSION_1_10
+#define AVAILABLE_GRMUSTACHE_VERSION_1_3_AND_LATER_BUT_DEPRECATED_IN_GRMUSTACHE_VERSION_1_10 DEPRECATED_ATTRIBUTE
+#else
+#define AVAILABLE_GRMUSTACHE_VERSION_1_3_AND_LATER_BUT_DEPRECATED_IN_GRMUSTACHE_VERSION_1_10 AVAILABLE_GRMUSTACHE_VERSION_1_3_AND_LATER
+#endif
+
+/*
+ * AVAILABLE_GRMUSTACHE_VERSION_1_4_AND_LATER_BUT_DEPRECATED_IN_GRMUSTACHE_VERSION_1_10
+ *
+ * Used on declarations introduced in GRMustache 1.4,
+ * but later deprecated in GRMustache 1.10
+ */
+#if GRMUSTACHE_VERSION_MIN_REQUIRED >= GRMUSTACHE_VERSION_1_10
+#define AVAILABLE_GRMUSTACHE_VERSION_1_4_AND_LATER_BUT_DEPRECATED_IN_GRMUSTACHE_VERSION_1_10 DEPRECATED_ATTRIBUTE
+#else
+#define AVAILABLE_GRMUSTACHE_VERSION_1_4_AND_LATER_BUT_DEPRECATED_IN_GRMUSTACHE_VERSION_1_10 AVAILABLE_GRMUSTACHE_VERSION_1_4_AND_LATER
+#endif
+
+/*
+ * AVAILABLE_GRMUSTACHE_VERSION_1_5_AND_LATER_BUT_DEPRECATED_IN_GRMUSTACHE_VERSION_1_10
+ *
+ * Used on declarations introduced in GRMustache 1.5,
+ * but later deprecated in GRMustache 1.10
+ */
+#if GRMUSTACHE_VERSION_MIN_REQUIRED >= GRMUSTACHE_VERSION_1_10
+#define AVAILABLE_GRMUSTACHE_VERSION_1_5_AND_LATER_BUT_DEPRECATED_IN_GRMUSTACHE_VERSION_1_10 DEPRECATED_ATTRIBUTE
+#else
+#define AVAILABLE_GRMUSTACHE_VERSION_1_5_AND_LATER_BUT_DEPRECATED_IN_GRMUSTACHE_VERSION_1_10 AVAILABLE_GRMUSTACHE_VERSION_1_5_AND_LATER
+#endif
+
+/*
+ * AVAILABLE_GRMUSTACHE_VERSION_1_6_AND_LATER_BUT_DEPRECATED_IN_GRMUSTACHE_VERSION_1_10
+ *
+ * Used on declarations introduced in GRMustache 1.6,
+ * but later deprecated in GRMustache 1.10
+ */
+#if GRMUSTACHE_VERSION_MIN_REQUIRED >= GRMUSTACHE_VERSION_1_10
+#define AVAILABLE_GRMUSTACHE_VERSION_1_6_AND_LATER_BUT_DEPRECATED_IN_GRMUSTACHE_VERSION_1_10 DEPRECATED_ATTRIBUTE
+#else
+#define AVAILABLE_GRMUSTACHE_VERSION_1_6_AND_LATER_BUT_DEPRECATED_IN_GRMUSTACHE_VERSION_1_10 AVAILABLE_GRMUSTACHE_VERSION_1_6_AND_LATER
+#endif
+
+/*
+ * AVAILABLE_GRMUSTACHE_VERSION_1_7_AND_LATER_BUT_DEPRECATED_IN_GRMUSTACHE_VERSION_1_10
+ *
+ * Used on declarations introduced in GRMustache 1.7,
+ * but later deprecated in GRMustache 1.10
+ */
+#if GRMUSTACHE_VERSION_MIN_REQUIRED >= GRMUSTACHE_VERSION_1_10
+#define AVAILABLE_GRMUSTACHE_VERSION_1_7_AND_LATER_BUT_DEPRECATED_IN_GRMUSTACHE_VERSION_1_10 DEPRECATED_ATTRIBUTE
+#else
+#define AVAILABLE_GRMUSTACHE_VERSION_1_7_AND_LATER_BUT_DEPRECATED_IN_GRMUSTACHE_VERSION_1_10 AVAILABLE_GRMUSTACHE_VERSION_1_7_AND_LATER
+#endif
+
+/*
+ * AVAILABLE_GRMUSTACHE_VERSION_1_8_AND_LATER_BUT_DEPRECATED_IN_GRMUSTACHE_VERSION_1_10
+ *
+ * Used on declarations introduced in GRMustache 1.8,
+ * but later deprecated in GRMustache 1.10
+ */
+#if GRMUSTACHE_VERSION_MIN_REQUIRED >= GRMUSTACHE_VERSION_1_10
+#define AVAILABLE_GRMUSTACHE_VERSION_1_8_AND_LATER_BUT_DEPRECATED_IN_GRMUSTACHE_VERSION_1_10 DEPRECATED_ATTRIBUTE
+#else
+#define AVAILABLE_GRMUSTACHE_VERSION_1_8_AND_LATER_BUT_DEPRECATED_IN_GRMUSTACHE_VERSION_1_10 AVAILABLE_GRMUSTACHE_VERSION_1_8_AND_LATER
+#endif
+
+/*
+ * AVAILABLE_GRMUSTACHE_VERSION_1_9_AND_LATER_BUT_DEPRECATED_IN_GRMUSTACHE_VERSION_1_10
+ *
+ * Used on declarations introduced in GRMustache 1.9,
+ * but later deprecated in GRMustache 1.10
+ */
+#if GRMUSTACHE_VERSION_MIN_REQUIRED >= GRMUSTACHE_VERSION_1_10
+#define AVAILABLE_GRMUSTACHE_VERSION_1_9_AND_LATER_BUT_DEPRECATED_IN_GRMUSTACHE_VERSION_1_10 DEPRECATED_ATTRIBUTE
+#else
+#define AVAILABLE_GRMUSTACHE_VERSION_1_9_AND_LATER_BUT_DEPRECATED_IN_GRMUSTACHE_VERSION_1_10 AVAILABLE_GRMUSTACHE_VERSION_1_9_AND_LATER
+#endif
+
+/*
+ * DEPRECATED_IN_GRMUSTACHE_VERSION_1_10_AND_LATER
+ *
+ * Used on types deprecated in GRMustache 1.10
+ */
+#if GRMUSTACHE_VERSION_MIN_REQUIRED >= GRMUSTACHE_VERSION_1_10
+#define DEPRECATED_IN_GRMUSTACHE_VERSION_1_10_AND_LATER DEPRECATED_ATTRIBUTE
+#else
+#define DEPRECATED_IN_GRMUSTACHE_VERSION_1_10_AND_LATER
+#endif
Oops, something went wrong.

0 comments on commit bdcf99f

Please sign in to comment.