-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathP5P_Prefix.pch
29 lines (25 loc) · 904 Bytes
/
P5P_Prefix.pch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//
// Prefix header for all source files of the 'P5P' target in the 'P5P' project
//
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#endif
// DLog is almost a drop-in replacement for NSLog
// @url http://iphoneincubator.com/blog/debugging/the-evolution-of-a-replacement-for-nslog
//
// DLog();
// DLog(@"here");
// DLog(@"value: %d", x);
// Unfortunately this doesn't work DLog(aStringVariable); you have to do this instead DLog(@"%@", aStringVariable);
#ifdef DEBUG
# define DLog(fmt, ...) NSLog((@"%s " fmt), __PRETTY_FUNCTION__, ##__VA_ARGS__);
# define FLog(fmt, ...) NSLog((@"%s " fmt), __PRETTY_FUNCTION__, ##__VA_ARGS__);
# define GLog(...);
#else
# define DLog(...);
# define FLog(...);
# define GLog(...);
#endif
// ALog always displays output regardless of the DEBUG setting
#define ALog(fmt, ...) NSLog((@"%s " fmt), __PRETTY_FUNCTION__, ##__VA_ARGS__);