src/cx/list.h

changeset 458
da11a5a765a0
parent 453
bb144d08cd44
child 460
e075009b33b7
equal deleted inserted replaced
457:8f7d3fe9ca40 458:da11a5a765a0
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
88 #ifdef __cplusplus 94 #ifdef __cplusplus
89 } /* extern "C" */ 95 } /* extern "C" */
90 #endif 96 #endif
91 97
92 #endif /* UCX_LIST_H */ 98 #endif /* UCX_LIST_H */

mercurial