@@ -262,16 +262,16 @@ static void delist(canard_list_t* const list, canard_listed_t* const member)
262262 }
263263 member -> next = NULL ;
264264 member -> prev = NULL ;
265- assert ((list -> head != NULL ) == (list -> tail != NULL ));
265+ CANARD_ASSERT ((list -> head != NULL ) == (list -> tail != NULL ));
266266}
267267
268268/// Insert addendum after anchor. If anchor is NULL, insert at the head.
269269/// If the item is already in the list, it will be delisted first. Can be used for moving to the specified position.
270270static void enlist_after (canard_list_t * const list , canard_listed_t * const anchor , canard_listed_t * const addendum )
271271{
272272 delist (list , addendum );
273- assert ((addendum -> next == NULL ) && (addendum -> prev == NULL ));
274- assert ((list -> head != NULL ) == (list -> tail != NULL ));
273+ CANARD_ASSERT ((addendum -> next == NULL ) && (addendum -> prev == NULL ));
274+ CANARD_ASSERT ((list -> head != NULL ) == (list -> tail != NULL ));
275275 if (anchor == NULL ) {
276276 addendum -> next = list -> head ;
277277 if (list -> head != NULL ) {
@@ -291,16 +291,16 @@ static void enlist_after(canard_list_t* const list, canard_listed_t* const ancho
291291 }
292292 anchor -> next = addendum ;
293293 }
294- assert ((list -> head != NULL ) && (list -> tail != NULL ));
294+ CANARD_ASSERT ((list -> head != NULL ) && (list -> tail != NULL ));
295295}
296296
297297/// Insert addendum before anchor. If anchor is NULL, insert at the tail.
298298/// If the item is already in the list, it will be delisted first. Can be used for moving to the specified position.
299299static void enlist_before (canard_list_t * const list , canard_listed_t * const anchor , canard_listed_t * const addendum )
300300{
301301 delist (list , addendum );
302- assert ((addendum -> next == NULL ) && (addendum -> prev == NULL ));
303- assert ((list -> head != NULL ) == (list -> tail != NULL ));
302+ CANARD_ASSERT ((addendum -> next == NULL ) && (addendum -> prev == NULL ));
303+ CANARD_ASSERT ((list -> head != NULL ) == (list -> tail != NULL ));
304304 if (anchor == NULL ) {
305305 addendum -> prev = list -> tail ;
306306 if (list -> tail != NULL ) {
@@ -320,7 +320,7 @@ static void enlist_before(canard_list_t* const list, canard_listed_t* const anch
320320 }
321321 anchor -> prev = addendum ;
322322 }
323- assert ((list -> head != NULL ) && (list -> tail != NULL ));
323+ CANARD_ASSERT ((list -> head != NULL ) && (list -> tail != NULL ));
324324}
325325
326326/// If the item is already in the list, it will be delisted first. Can be used for moving to the front/back.
@@ -422,7 +422,7 @@ typedef struct tx_frame_t
422422{
423423 struct tx_frame_t * next ;
424424 size_t refcount : (sizeof (size_t ) * CHAR_BIT ) - DLC_BITS ; ///< 268+ million ought to be enough for anybody
425- size_t dlc : DLC_BITS ; ///< use canard_len_to_dlc[] and canard_dlc_to_len[]
425+ size_t dlc : DLC_BITS ; ///< use canard_len_to_dlc[] and canard_dlc_to_len[]
426426 byte_t data [];
427427} tx_frame_t ;
428428static_assert ((sizeof (void * ) > 4 ) || ((sizeof (tx_frame_t ) + CANARD_MTU_CAN_CLASSIC ) <= 16 ),
0 commit comments