I have define VLog like this:
#define VLog(s, ...) NSLog(@"%@", [NSString stringWithFormat:(s), ##__VA_ARGS__])
I know VLog(@"hello,%d%@", 1, @"a");
__VA_ARGS__
is replaced with 1, @"a".
Whereas, VLog(@"hello");
__VA_ARGS__
is replaced with what?
and if I define VLog like this:
//delete ##
#define VLog(s, ...) NSLog(@"%@", [NSString stringWithFormat:(s), ##__VA_ARGS__])`
VLog(@"123");
is pointed out error.