Created
May 3, 2010 04:10
-
-
Save atnan/387747 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# define ALog(format, ...) NSLog((@"%s [L%d] " format), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__); | |
# ifdef DEBUG | |
# define DLog(format, ...) ALog(format, ##__VA_ARGS__); | |
# else | |
# define DLog(...) | |
# endif | |
You should use:
NSString *test = @"test";
DLog(@"test = %@", test);
First argument is format.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
NSString *test = @"test";
DLog(test);
This code are not work.