project_files/HedgewarsMobile/Hedgewars_Prefix.pch
changeset 3663 8c28abf427f5
parent 3513 f589230fa21b
child 3701 8c449776ebe6
equal deleted inserted replaced
3662:a44406f4369b 3663:8c28abf427f5
    20   #define ALog(...) NSLog(@"%s %@", __PRETTY_FUNCTION__, [NSString stringWithFormat:__VA_ARGS__])
    20   #define ALog(...) NSLog(@"%s %@", __PRETTY_FUNCTION__, [NSString stringWithFormat:__VA_ARGS__])
    21 #endif
    21 #endif
    22  
    22  
    23 #define ZAssert(condition, ...) do { if (!(condition)) { ALog(__VA_ARGS__); }} while(0)
    23 #define ZAssert(condition, ...) do { if (!(condition)) { ALog(__VA_ARGS__); }} while(0)
    24 
    24 
       
    25 // by http://blog.coriolis.ch/2009/01/05/macros-for-xcode/
       
    26 #define START_TIMER NSTimeInterval start = [NSDate timeIntervalSinceReferenceDate];
       
    27 #define END_TIMER(msg) 	NSTimeInterval stop = [NSDate timeIntervalSinceReferenceDate]; CMLog([NSString stringWithFormat:@"%@ Time = %f", msg, stop-start]);
       
    28 
       
    29 #define releaseAndNil(x) [x release], x = nil;
       
    30 
       
    31 
    25 #if !__IPHONE_3_2
    32 #if !__IPHONE_3_2
    26 typedef enum {
    33 typedef enum {
    27     UIUserInterfaceIdiomPhone,           // iPhone and iPod touch style UI
    34     UIUserInterfaceIdiomPhone,           // iPhone and iPod touch style UI
    28     UIUserInterfaceIdiomPad,             // iPad style UI
    35     UIUserInterfaceIdiomPad,             // iPad style UI
    29 } UIUserInterfaceIdiom;
    36 } UIUserInterfaceIdiom;