Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Prepare v5.2.0

  • Loading branch information...
commit ec6d52cb877c2341c252045c4e81c9b20633279d 1 parent 8192f79
@groue authored
View
2  src/bin/buildGRMustacheAvailabilityMacros
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby
MAJOR_VERSION = 5
-MAX_MINOR_VERSION = 1
+MAX_MINOR_VERSION = 2
puts <<-LICENSE
// The MIT License
View
70 src/classes/GRMustacheAvailabilityMacros.h
@@ -30,6 +30,7 @@
*/
#define GRMUSTACHE_VERSION_5_0 5000
#define GRMUSTACHE_VERSION_5_1 5010
+#define GRMUSTACHE_VERSION_5_2 5020
@@ -37,10 +38,10 @@
/*
- * If max GRMustacheVersion not specified, assume 5.1
+ * If max GRMustacheVersion not specified, assume 5.2
*/
#ifndef GRMUSTACHE_VERSION_MAX_ALLOWED
-#define GRMUSTACHE_VERSION_MAX_ALLOWED GRMUSTACHE_VERSION_5_1
+#define GRMUSTACHE_VERSION_MAX_ALLOWED GRMUSTACHE_VERSION_5_2
#endif
/*
@@ -145,3 +146,68 @@
+/*
+ * AVAILABLE_GRMUSTACHE_VERSION_5_2_AND_LATER
+ *
+ * Used on declarations introduced in GRMustache 5.2
+ */
+#if GRMUSTACHE_VERSION_MAX_ALLOWED < GRMUSTACHE_VERSION_5_2
+#define AVAILABLE_GRMUSTACHE_VERSION_5_2_AND_LATER UNAVAILABLE_ATTRIBUTE
+#elif GRMUSTACHE_VERSION_MIN_REQUIRED < GRMUSTACHE_VERSION_5_2
+#define AVAILABLE_GRMUSTACHE_VERSION_5_2_AND_LATER WEAK_IMPORT_ATTRIBUTE
+#else
+#define AVAILABLE_GRMUSTACHE_VERSION_5_2_AND_LATER
+#endif
+
+/*
+ * AVAILABLE_GRMUSTACHE_VERSION_5_2_AND_LATER_BUT_DEPRECATED
+ *
+ * Used on declarations introduced in GRMustache 5.2,
+ * and deprecated in GRMustache 5.2
+ */
+#if GRMUSTACHE_VERSION_MIN_REQUIRED >= GRMUSTACHE_VERSION_5_2
+#define AVAILABLE_GRMUSTACHE_VERSION_5_2_AND_LATER_BUT_DEPRECATED DEPRECATED_ATTRIBUTE
+#else
+#define AVAILABLE_GRMUSTACHE_VERSION_5_2_AND_LATER_BUT_DEPRECATED AVAILABLE_GRMUSTACHE_VERSION_5_2_AND_LATER
+#endif
+
+/*
+ * AVAILABLE_GRMUSTACHE_VERSION_5_0_AND_LATER_BUT_DEPRECATED_IN_GRMUSTACHE_VERSION_5_2
+ *
+ * Used on declarations introduced in GRMustache 5.0,
+ * but later deprecated in GRMustache 5.2
+ */
+#if GRMUSTACHE_VERSION_MIN_REQUIRED >= GRMUSTACHE_VERSION_5_2
+#define AVAILABLE_GRMUSTACHE_VERSION_5_0_AND_LATER_BUT_DEPRECATED_IN_GRMUSTACHE_VERSION_5_2 DEPRECATED_ATTRIBUTE
+#else
+#define AVAILABLE_GRMUSTACHE_VERSION_5_0_AND_LATER_BUT_DEPRECATED_IN_GRMUSTACHE_VERSION_5_2 AVAILABLE_GRMUSTACHE_VERSION_5_0_AND_LATER
+#endif
+
+/*
+ * AVAILABLE_GRMUSTACHE_VERSION_5_1_AND_LATER_BUT_DEPRECATED_IN_GRMUSTACHE_VERSION_5_2
+ *
+ * Used on declarations introduced in GRMustache 5.1,
+ * but later deprecated in GRMustache 5.2
+ */
+#if GRMUSTACHE_VERSION_MIN_REQUIRED >= GRMUSTACHE_VERSION_5_2
+#define AVAILABLE_GRMUSTACHE_VERSION_5_1_AND_LATER_BUT_DEPRECATED_IN_GRMUSTACHE_VERSION_5_2 DEPRECATED_ATTRIBUTE
+#else
+#define AVAILABLE_GRMUSTACHE_VERSION_5_1_AND_LATER_BUT_DEPRECATED_IN_GRMUSTACHE_VERSION_5_2 AVAILABLE_GRMUSTACHE_VERSION_5_1_AND_LATER
+#endif
+
+/*
+ * DEPRECATED_IN_GRMUSTACHE_VERSION_5_2_AND_LATER
+ *
+ * Used on types deprecated in GRMustache 5.2
+ */
+#if GRMUSTACHE_VERSION_MIN_REQUIRED >= GRMUSTACHE_VERSION_5_2
+#define DEPRECATED_IN_GRMUSTACHE_VERSION_5_2_AND_LATER DEPRECATED_ATTRIBUTE
+#else
+#define DEPRECATED_IN_GRMUSTACHE_VERSION_5_2_AND_LATER
+#endif
+
+
+
+
+
+
View
2  src/classes/GRMustacheVersion.h
@@ -33,7 +33,7 @@
*
* @since v1.0
*/
-#define GRMUSTACHE_MINOR_VERSION 1
+#define GRMUSTACHE_MINOR_VERSION 2
/**
* The patch-level component of GRMustache version
View
2  src/tests/Public/v5.2/GRMustacheSuites5_2Test.m
@@ -20,7 +20,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-// TODO #define GRMUSTACHE_VERSION_MAX_ALLOWED GRMUSTACHE_VERSION_5_0
+#define GRMUSTACHE_VERSION_MAX_ALLOWED GRMUSTACHE_VERSION_5_2
#import "GRMustachePublicAPITest.h"
@interface GRMustacheSuites5_2Test : GRMustachePublicAPITest
Please sign in to comment.
Something went wrong with that request. Please try again.