1. 修复初始化问题
This commit is contained in:
parent
4a15c91dda
commit
808ea9273e
@ -57,7 +57,7 @@ typedef struct __attribute__ ((__packed__)) _HBitBase {
|
|||||||
/** ============================================================================================= **/
|
/** ============================================================================================= **/
|
||||||
|
|
||||||
// 定义HBit变量, name为变量名, num为需要比特长度
|
// 定义HBit变量, name为变量名, num为需要比特长度
|
||||||
#define HBIT_DEFINE(name, num) HBitType name[_HBIT_CALC_LEN(num)] = { kHBitInitFlag, _HBIT_INIT_SIZE(num), 0 }
|
#define HBIT_DEFINE(name, num) HBitType name[_HBIT_CALC_LEN(num)] = { kHBitInitFlag, _HBIT_INIT_SIZE(num) }
|
||||||
|
|
||||||
// 声明HBit变量
|
// 声明HBit变量
|
||||||
#define HBIT_EXTERN(name, num) extern HBitType name[_HBIT_CALC_LEN(num)]
|
#define HBIT_EXTERN(name, num) extern HBitType name[_HBIT_CALC_LEN(num)]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user