883 * |
883 * |
884 * Also calls the content destructor functions for each element, if specified. |
884 * Also calls the content destructor functions for each element, if specified. |
885 * |
885 * |
886 * @param list the list which shall be freed |
886 * @param list the list which shall be freed |
887 */ |
887 */ |
888 static inline void cxListFree(CxList *list) { |
888 void cxListFree(CxList *list); |
889 if (list == NULL) return; |
|
890 list->cl->deallocate(list); |
|
891 } |
|
892 |
889 |
893 /** |
890 /** |
894 * A shared instance of an empty list. |
891 * A shared instance of an empty list. |
895 * |
892 * |
896 * Writing to that list is not allowed. |
893 * Writing to that list is not allowed. |