#ifdef __OBJC__
#ifdef DEBUG
#define NSLog(fmt,...) NSlog((@"%s [Line %d]" fmt),__PRETTY_FUNCTION__,__LINE__,##__VA_ARGS__)
#else
#define NSLog(...)
#endif
#endif
记录下来以便以后直接使用。
#ifdef __OBJC__
#ifdef DEBUG
#define NSLog(fmt,...) NSlog((@"%s [Line %d]" fmt),__PRETTY_FUNCTION__,__LINE__,##__VA_ARGS__)
#else
#define NSLog(...)
#endif
#endif
记录下来以便以后直接使用。