@@ -46,13 +46,13 @@ static_assert(FW_FIXED_LENGTH_STRING_SIZE >= FW_PARAM_STRING_MAX_SIZE,
46
46
47
47
// Check that command/telemetry strings are not larger than an argument buffer
48
48
49
- static_assert (FW_CMD_STRING_MAX_SIZE <= FW_CMD_ARG_BUFFER_MAX_SIZE,
49
+ static_assert (FW_CMD_STRING_MAX_SIZE + sizeof (FwSizeStoreType) <= FW_CMD_ARG_BUFFER_MAX_SIZE,
50
50
"FW_CMD_STRING_MAX_SIZE cannot be larger than FW_CMD_ARG_BUFFER_MAX_SIZE");
51
- static_assert (FW_LOG_STRING_MAX_SIZE <= FW_LOG_BUFFER_MAX_SIZE,
51
+ static_assert (FW_LOG_STRING_MAX_SIZE + sizeof (FwSizeStoreType) <= FW_LOG_BUFFER_MAX_SIZE,
52
52
"FW_LOG_STRING_MAX_SIZE cannot be larger than FW_LOG_BUFFER_MAX_SIZE");
53
- static_assert (FW_TLM_STRING_MAX_SIZE <= FW_TLM_BUFFER_MAX_SIZE,
53
+ static_assert (FW_TLM_STRING_MAX_SIZE + sizeof (FwSizeStoreType) <= FW_TLM_BUFFER_MAX_SIZE,
54
54
"FW_TLM_STRING_MAX_SIZE cannot be larger than FW_TLM_BUFFER_MAX_SIZE");
55
- static_assert (FW_PARAM_STRING_MAX_SIZE <= FW_PARAM_BUFFER_MAX_SIZE,
55
+ static_assert (FW_PARAM_STRING_MAX_SIZE + sizeof (FwSizeStoreType) <= FW_PARAM_BUFFER_MAX_SIZE,
56
56
"FW_PARAM_STRING_MAX_SIZE cannot be larger than FW_PARAM_BUFFER_MAX_SIZE");
57
57
58
58
// Text logging needs the code generator for serializables to generate a stringified version of the
@@ -79,7 +79,7 @@ static_assert(sizeof(PlatformPointerCastType) == sizeof(void*), "PlatformPointer
79
79
static_assert (std::numeric_limits<PlatformSizeType>::max() >= std::numeric_limits<unsigned int>::max(),
80
80
"PlatformSizeType must be at least as large as unsigned int");
81
81
static_assert (std::numeric_limits<PlatformSignedSizeType>::max() >= std::numeric_limits<int>::max(),
82
- "PlatformSignedSizeType must be at least as large as int");
82
+ "PlatformSignedSizeType must be at least as large as int");
83
83
static_assert (std::numeric_limits<PlatformSignedSizeType>::min() <= std::numeric_limits<int>::min(),
84
84
"PlatformSignedSizeType must be at least as small as int");
85
85
static_assert (std::numeric_limits<PlatformIndexType>::is_signed, " PlatformIndexType must be signed" );
@@ -92,7 +92,7 @@ static_assert(sizeof(PlatformSizeType) == sizeof(PlatformSignedSizeType), "Platf
92
92
static_assert (std::numeric_limits<FwSizeType>::max() >= std::numeric_limits<unsigned int>::max(),
93
93
"FwSizeType must be at least as large as unsigned int");
94
94
static_assert (std::numeric_limits<FwSignedSizeType>::max() >= std::numeric_limits<int>::max(),
95
- "FwSignedSizeType must be at least as large as int");
95
+ "FwSignedSizeType must be at least as large as int");
96
96
static_assert (std::numeric_limits<FwSignedSizeType>::min() <= std::numeric_limits<int>::min(),
97
97
"FwSignedSizeType must be at least as large as int");
98
98
static_assert (std::numeric_limits<FwIndexType>::is_signed, " FwIndexType must be signed" );
0 commit comments