Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Try Objective-C. Parent comment
#ifdef DEBUG
#define DLog(fmt, ...) NSLog((@"%s [Line %d] " fmt),__PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)
#else
# define DLog(...)
#endif
Put that in your [Project]-Prefix.pch file to make it available globally. Aside from letting you log without fear, it gives you better performance in production, and you can get extra context for your output.
1: http://stackoverflow.com/questions/969130/how-to-print-out-t...
There are no comments on this comment yet.
#ifdef DEBUG
#define DLog(fmt, ...) NSLog((@"%s [Line %d] " fmt),__PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)
#else
# define DLog(...)
#endif
Put that in your [Project]-Prefix.pch file to make it available globally. Aside from letting you log without fear, it gives you better performance in production, and you can get extra context for your output.
1: http://stackoverflow.com/questions/969130/how-to-print-out-t...