#define eprintf(...) fprintf (stderr, __VA_ARGS__)
eprintf ("%s:%d: ", input_file, lineno) ==> fprintf (stderr, "%s:%d: ", input_file, lineno)
좋은 꼼수
#define FORMAT(format, ...) [NSString stringWithFormat:(format), ##__VA_ARGS__]
...
[self logInfo:FORMAT(@"Echo server started on port %hu", [listenSocket localPort])];
댓글 없음:
댓글 쓰기