Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // first define -DDEBUG=1 in Target --> Build Settings --> Other C Flags
- // after define the macro below in .PCH file of your project
- // and use it in the same way of NSLog.
- #ifdef DEBUG
- #define LLog( s, ... ) NSLog( @"<%p %@:(%d)> %@", self, [[NSString stringWithUTF8String:__FILE__] lastPathComponent], __LINE__, [NSString stringWithFormat:(s), ##__VA_ARGS__] )
- #else
- #define LLog( s, ... )
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement