关于NSLog

#ifdef __OBJC__
#ifdef DEBUG
#define NSLog(fmt,...) NSlog((@"%s [Line %d]" fmt),__PRETTY_FUNCTION__,__LINE__,##__VA_ARGS__)
#else
#define NSLog(...)
#endif
#endif

记录下来以便以后直接使用。

原文地址:https://www.cnblogs.com/pioneerMax/p/6080666.html