project_files/HedgewarsMobile/Classes/DefinesAndMacros.h
branchios-develop
changeset 13225 8667e9e63896
parent 13192 d6aea85111c7
equal deleted inserted replaced
13224:01ab48b253ef 13225:8667e9e63896
    26   #define ALog(...) [[NSAssertionHandler currentHandler] handleFailureInFunction:[NSString stringWithCString:__PRETTY_FUNCTION__ encoding:NSUTF8StringEncoding] file:[NSString stringWithCString:__FILE__ encoding:NSUTF8StringEncoding] lineNumber:__LINE__ description:__VA_ARGS__]
    26   #define ALog(...) [[NSAssertionHandler currentHandler] handleFailureInFunction:[NSString stringWithCString:__PRETTY_FUNCTION__ encoding:NSUTF8StringEncoding] file:[NSString stringWithCString:__FILE__ encoding:NSUTF8StringEncoding] lineNumber:__LINE__ description:__VA_ARGS__]
    27 #else
    27 #else
    28   #ifndef NS_BLOCK_ASSERTIONS
    28   #ifndef NS_BLOCK_ASSERTIONS
    29     #define NS_BLOCK_ASSERTIONS
    29     #define NS_BLOCK_ASSERTIONS
    30   #endif
    30   #endif
       
    31   #define DLog(...)
    31   #define ALog(...) NSLog(@"%s %@", __PRETTY_FUNCTION__, [NSString stringWithFormat:__VA_ARGS__])
    32   #define ALog(...) NSLog(@"%s %@", __PRETTY_FUNCTION__, [NSString stringWithFormat:__VA_ARGS__])
    32 #endif
    33 #endif
    33 
    34 
    34 
    35 
    35 #define ZAssert(condition, ...) do { if (!(condition)) { ALog(__VA_ARGS__); }} while(0)
    36 #define ZAssert(condition, ...) do { if (!(condition)) { ALog(__VA_ARGS__); }} while(0)