src/cx/list.h

changeset 460
e075009b33b7
parent 458
da11a5a765a0
child 464
7fafc95968fc
equal deleted inserted replaced
459:c0e2e9f83399 460:e075009b33b7
83 83
84 size_t cxListFind(CxList list, void *elem); 84 size_t cxListFind(CxList list, void *elem);
85 85
86 void *cxListLast(CxList list); 86 void *cxListLast(CxList list);
87 87
88 #define cxTypedListAdd(type, list, elem) (cxListAdd(list, (type*) (elem)))
89 #define cxTypedListInsert(type, list, index, elem) (cxListInsert(list, index, (type*) (elem)))
90 #define cxTypedListAt(type, list, index) ((type*)cxListAt(list, index))
91 #define cxTypedListFind(type, list, elem) (cxListFind(list, (type*) (elem)))
92 #define cxTypedListLast(type, list) ((type*)cxListLast(list))
93
94 #ifdef __cplusplus 88 #ifdef __cplusplus
95 } /* extern "C" */ 89 } /* extern "C" */
96 #endif 90 #endif
97 91
98 #endif /* UCX_LIST_H */ 92 #endif /* UCX_LIST_H */

mercurial