Skip to content
Browse files

Added #warning for those who try to compile this without ARC.

  • Loading branch information...
1 parent d75f784 commit a408d0e1b1d069ca6d9de5eea6b1ab1b94503f29 Jerrod Putman committed
Showing with 20 additions and 0 deletions.
  1. +5 −0 CCKit/CCGestureRecognizer.m
  2. +5 −0 CCKit/CCScrollLayer.m
  3. +5 −0 CCKit/CCTableLayer.m
  4. +5 −0 CCKit/CCTableLayerCell.m
View
5 CCKit/CCGestureRecognizer.m
@@ -29,6 +29,11 @@
#import "CCGestureRecognizer.h"
+#if __has_feature(objc_arc) == 0
+#warning This code was designed to run under ARC. Without it, you will experience lots of memory leaks.
+#endif
+
+
@interface CCGestureRecognizer ()
@property (nonatomic, weak) CCNode *node;
View
5 CCKit/CCScrollLayer.m
@@ -29,6 +29,11 @@
#import "CCScrollLayer.h"
+#if __has_feature(objc_arc) == 0
+#warning This code was designed to run under ARC. Without it, you will experience lots of memory leaks.
+#endif
+
+
#define SCROLL_DECEL_DIST 1.0f
#define BOUNCE_DURATION 0.25f
View
5 CCKit/CCTableLayer.m
@@ -30,6 +30,11 @@
#import "CCTableLayerCell.h"
+#if __has_feature(objc_arc) == 0
+#warning This code was designed to run under ARC. Without it, you will experience lots of memory leaks.
+#endif
+
+
@interface CCScrollLayer ()
@property (nonatomic, strong) CCLayer *container;
View
5 CCKit/CCTableLayerCell.m
@@ -29,6 +29,11 @@
#import "CCTableLayerCell.h"
+#if __has_feature(objc_arc) == 0
+#warning This code was designed to run under ARC. Without it, you will experience lots of memory leaks.
+#endif
+
+
@implementation CCTableLayerCell
@synthesize idx;

0 comments on commit a408d0e

Please sign in to comment.
Something went wrong with that request. Please try again.