Modified create_linked_list functions to not null terminal link pointers

This commit is contained in:
John Wellbelove 2025-03-01 13:40:49 +00:00
parent 260a3f4a48
commit acc0b4bb89

View File

@ -945,8 +945,7 @@ namespace etl
{
TLink* current = &first;
((current->etl_next = &links, static_cast<TLink&>(links).etl_previous = current, current = &links), ...);
current->etl_next = ETL_NULLPTR;
return current;
}
@ -959,12 +958,10 @@ namespace etl
{
TLink* current = first;
((current->etl_next = links, static_cast<TLink*>(links)->etl_previous = current, current = links), ...);
current->etl_next = ETL_NULLPTR;
return current;
}
#elif ETL_USING_CPP11
//***************************************************************************
/// Create a linked list from a number of bidirectional_link nodes.
//***************************************************************************