project_files/HedgewarsMobile/Classes/DefinesAndMacros.h
changeset 6612 8fd6bb239a1e
parent 6268 d773867f93db
child 6624 e049b5bb0ad1
equal deleted inserted replaced
6611:d9d00e537010 6612:8fd6bb239a1e
    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