1. 修复初始化问题

This commit is contained in:
coffee 2025-04-01 19:48:01 +08:00
parent 4a15c91dda
commit 808ea9273e

View File

@ -57,7 +57,7 @@ typedef struct __attribute__ ((__packed__)) _HBitBase {
/** ============================================================================================= **/
// 定义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变量
#define HBIT_EXTERN(name, num) extern HBitType name[_HBIT_CALC_LEN(num)]