src/cx/collection.h

changeset 786
b0ebb3d88407
parent 759
475335643af4
equal deleted inserted replaced
785:bb18daa62d5f 786:b0ebb3d88407
46 /** 46 /**
47 * Special constant used for creating collections that are storing pointers. 47 * Special constant used for creating collections that are storing pointers.
48 */ 48 */
49 #define CX_STORE_POINTERS 0 49 #define CX_STORE_POINTERS 0
50 50
51 #ifndef CX_COMPARE_FUNC_DEFINED
52 #define CX_COMPARE_FUNC_DEFINED
51 /** 53 /**
52 * A comparator function comparing two collection elements. 54 * A comparator function comparing two collection elements.
53 */ 55 */
54 typedef int(*cx_compare_func)( 56 typedef int(*cx_compare_func)(
55 void const *left, 57 void const *left,
56 void const *right 58 void const *right
57 ); 59 );
60 #endif // CX_COMPARE_FUNC_DEFINED
58 61
59 /** 62 /**
60 * Use this macro to declare common members for a collection structure. 63 * Use this macro to declare common members for a collection structure.
61 */ 64 */
62 #define CX_COLLECTION_MEMBERS \ 65 #define CX_COLLECTION_MEMBERS \

mercurial