src/cx/list.h

changeset 1109
89ec23988b88
parent 1101
2872f287fadc
child 1111
78eeeb950883
equal deleted inserted replaced
1108:c3bde8ff1c0b 1109:89ec23988b88
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.

mercurial