equal
deleted
inserted
replaced
36 #define releaseAndNil(x) [x release], x = nil |
36 #define releaseAndNil(x) [x release], x = nil |
37 #endif |
37 #endif |
38 |
38 |
39 |
39 |
40 #define ZAssert(condition, ...) do { if (!(condition)) { ALog(__VA_ARGS__); }} while(0) |
40 #define ZAssert(condition, ...) do { if (!(condition)) { ALog(__VA_ARGS__); }} while(0) |
41 #define rotationManager(x) (x == UIInterfaceOrientationLandscapeRight) || (x == UIInterfaceOrientationLandscapeLeft) |
41 #define rotationManager(x) (IS_IPAD() ? YES : (x == UIInterfaceOrientationLandscapeRight) || (x == UIInterfaceOrientationLandscapeLeft)) |
42 |
42 |
43 #define START_TIMER NSTimeInterval start = [NSDate timeIntervalSinceReferenceDate]; |
43 #define START_TIMER NSTimeInterval start = [NSDate timeIntervalSinceReferenceDate]; |
44 #define END_TIMER(msg) NSTimeInterval stop = [NSDate timeIntervalSinceReferenceDate]; CMLog([NSString stringWithFormat:@"%@ Time = %f", msg, stop-start]); |
44 #define END_TIMER(msg) NSTimeInterval stop = [NSDate timeIntervalSinceReferenceDate]; CMLog([NSString stringWithFormat:@"%@ Time = %f", msg, stop-start]); |
45 |
45 |
46 |
46 |