说下这段代码中,
do{...}while(0)
的作用。
#define NSLog(format,...) do {
fprintf(stderr,”<%s:%d>%s\n”,
[[[NSString stringWithUTF8String:_FILE_]lastPathComponent]UTF8String],
_LINE_,_func_);
(NSLog)((format),##_VA_ARGS_);
fprintf(stderr,” — \n”);
}while(0)