Commit d3cfc860 authored by Benjamin Walsh's avatar Benjamin Walsh Committed by Anas Nashif
Browse files

slist: add static initialization macro



Change-Id: Ic0d057ed68dc6513bcc1d4b68fbdfb86c28d1fda
Signed-off-by: default avatarBenjamin Walsh <benjamin.walsh@windriver.com>
parent 0dfc9db8
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -92,6 +92,8 @@ static inline void sys_slist_init(sys_slist_t *list)
	list->tail = NULL;
}

#define SYS_SLIST_STATIC_INIT(ptr_to_list) {NULL, NULL}

/**
 * @brief Test if the given list is empty
 *