ios 代码添加
This commit is contained in:
15
ios/Classes/utils/TLogUtil.h
Normal file
15
ios/Classes/utils/TLogUtil.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#ifdef DEBUG
|
||||
#define GLog(...) NSLog(@"%s\n %@\n\n", __func__, [NSString stringWithFormat:__VA_ARGS__])
|
||||
#else
|
||||
#define GLog(...)
|
||||
#endif
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface TLogUtil : NSObject
|
||||
+ (instancetype)sharedInstance;
|
||||
- (void)debug:(BOOL)isDebug;
|
||||
- (void)print:(NSString *)message;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
Reference in New Issue
Block a user