Skip to content
Create a gist now

Instantly share code, notes, and snippets.

# 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
@favormm
favormm commented Sep 26, 2013

NSString *test = @"test";
DLog(test);

This code are not work.

@mdziadkowiec

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
Something went wrong with that request. Please try again.