project_files/HedgewarsMobile/Hedgewars_Prefix.pch
changeset 3701 8c449776ebe6
parent 3663 8c28abf427f5
child 3829 81db3c85784b
equal deleted inserted replaced
3699:e5e2cbc90891 3701:8c449776ebe6
     4 
     4 
     5 #ifdef __OBJC__
     5 #ifdef __OBJC__
     6 #import <Foundation/Foundation.h>
     6 #import <Foundation/Foundation.h>
     7 #import <CoreGraphics/CoreGraphics.h>
     7 #import <CoreGraphics/CoreGraphics.h>
     8 #import <UIKit/UIKit.h>
     8 #import <UIKit/UIKit.h>
       
     9 #import "PascalImports.h"
       
    10 #import "UIImageExtra.h"
       
    11 #import "CommodityFunctions.h"
       
    12 #import "SDL.h"
       
    13 #import "SDL_video.h"
       
    14 #import "SDL_net.h"
       
    15 #import "SDL_mixer.h"
     9 #endif
    16 #endif
    10 
    17 
    11 // by http://www.cimgf.com/2010/05/02/my-current-prefix-pch-file/
    18 // by http://www.cimgf.com/2010/05/02/my-current-prefix-pch-file/
    12 #ifdef DEBUG
    19 #ifdef DEBUG
    13   #define DLog(...) NSLog(@"%s %@", __PRETTY_FUNCTION__, [NSString stringWithFormat:__VA_ARGS__])
    20   #define DLog(...) NSLog(@"%s %@", __PRETTY_FUNCTION__, [NSString stringWithFormat:__VA_ARGS__])
    17   #ifndef NS_BLOCK_ASSERTIONS
    24   #ifndef NS_BLOCK_ASSERTIONS
    18     #define NS_BLOCK_ASSERTIONS
    25     #define NS_BLOCK_ASSERTIONS
    19   #endif
    26   #endif
    20   #define ALog(...) NSLog(@"%s %@", __PRETTY_FUNCTION__, [NSString stringWithFormat:__VA_ARGS__])
    27   #define ALog(...) NSLog(@"%s %@", __PRETTY_FUNCTION__, [NSString stringWithFormat:__VA_ARGS__])
    21 #endif
    28 #endif
    22  
    29 
    23 #define ZAssert(condition, ...) do { if (!(condition)) { ALog(__VA_ARGS__); }} while(0)
    30 #define ZAssert(condition, ...) do { if (!(condition)) { ALog(__VA_ARGS__); }} while(0)
    24 
    31 
    25 // by http://blog.coriolis.ch/2009/01/05/macros-for-xcode/
    32 // by http://blog.coriolis.ch/2009/01/05/macros-for-xcode/
    26 #define START_TIMER NSTimeInterval start = [NSDate timeIntervalSinceReferenceDate];
    33 #define START_TIMER NSTimeInterval start = [NSDate timeIntervalSinceReferenceDate];
    27 #define END_TIMER(msg) 	NSTimeInterval stop = [NSDate timeIntervalSinceReferenceDate]; CMLog([NSString stringWithFormat:@"%@ Time = %f", msg, stop-start]);
    34 #define END_TIMER(msg) 	NSTimeInterval stop = [NSDate timeIntervalSinceReferenceDate]; CMLog([NSString stringWithFormat:@"%@ Time = %f", msg, stop-start]);