宽窄优行-由【嘉易行】项目成品而来
younger_times
2023-04-06 a1ae6802080a22e6e6ce6d0935e95facb1daca5c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//
//  RHSocketMacros.h
//  Example
//
//  Created by zhuruhong on 2019/9/8.
//  Copyright © 2019年 zhuruhong. All rights reserved.
//
 
#ifndef RHSocketMacros_h
#define RHSocketMacros_h
 
#ifdef DEBUG
#define RHSocketDebug
#endif
 
#ifdef RHSocketDebug
//#define RHSocketLog(format, ...) NSLog((@"**************************************\n[File: %s]\n[Function: %s]\n[Line: %d] " format), __FILE__, __FUNCTION__, __LINE__, ## __VA_ARGS__)
#define RHSocketLog(format, ...) NSLog((@"[Function: %s]\n " format), __FUNCTION__, ## __VA_ARGS__)
//#define RHSocketLog(format, ...) NSLog(format, ## __VA_ARGS__)
#else
#define RHSocketLog(format, ...)
#endif
 
 
#define RHSocketBlockRun(block, ...) block ? block(__VA_ARGS__) : nil
 
#define RH_APP_VERSION      [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]
#define RH_BUILD_VERSION    [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]
#define RH_DISPLAY_NAME     [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleDisplayName"]
#define RH_BUNDLE_NAME      [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleName"]
 
#endif /* RHSocketMacros_h */