Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
805 | - | 1 | // |
2 | // Prefix header for all source files of the 'iKopter' target in the 'iKopter' project |
||
3 | // |
||
4 | #import <Availability.h> |
||
5 | |||
6 | #ifndef __IPHONE_3_0 |
||
7 | #warning "This project uses features only available in iPhone SDK 3.0 and later." |
||
8 | #endif |
||
9 | |||
10 | |||
11 | #ifdef __OBJC__ |
||
12 | #import <Foundation/Foundation.h> |
||
13 | #import <UIKit/UIKit.h> |
||
14 | #endif |
||
15 | |||
16 | // DLog is almost a drop-in replacement for NSLog |
||
17 | // DLog(); |
||
18 | // DLog(@"here"); |
||
19 | // DLog(@"value: %d", x); |
||
20 | // Unfortunately this doesn't work DLog(aStringVariable); you have to do this instead DLog(@"%@", aStringVariable); |
||
21 | #ifdef DEBUG |
||
22 | # define DLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__); |
||
23 | #else |
||
24 | # define DLog(...) |
||
25 | #endif |
||
26 | |||
27 | // ALog always displays output regardless of the DEBUG setting |
||
28 | #define ALog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__); |