src/cx/array_list.h

changeset 844
3270ea9e41ef
parent 843
7d2959b7fff2
equal deleted inserted replaced
843:7d2959b7fff2 844:3270ea9e41ef
57 * @see cx_array_initialize() 57 * @see cx_array_initialize()
58 */ 58 */
59 #define CX_ARRAY_DECLARE(type, name) \ 59 #define CX_ARRAY_DECLARE(type, name) \
60 type * name; \ 60 type * name; \
61 size_t name##_size; \ 61 size_t name##_size; \
62 size_t name##_capacity; 62 size_t name##_capacity
63 63
64 /** 64 /**
65 * Initializes an array declared with CX_ARRAY_DECLARE(). 65 * Initializes an array declared with CX_ARRAY_DECLARE().
66 * 66 *
67 * The memory for the array is allocated with stdlib malloc(). 67 * The memory for the array is allocated with stdlib malloc().

mercurial