| 61 * @see cx_array_initialize() |
61 * @see cx_array_initialize() |
| 62 * @see cx_array_simple_add_sorted() |
62 * @see cx_array_simple_add_sorted() |
| 63 * @see cx_array_simple_insert_sorted() |
63 * @see cx_array_simple_insert_sorted() |
| 64 */ |
64 */ |
| 65 #define CX_ARRAY_DECLARE_SIZED(type, name, size_type) \ |
65 #define CX_ARRAY_DECLARE_SIZED(type, name, size_type) \ |
| 66 type * name; \ |
66 type * name; \ |
| 67 size_type name##_size; \ |
67 /** Array size. */ size_type name##_size; \ |
| 68 size_type name##_capacity |
68 /** Array capacity. */ size_type name##_capacity |
| 69 |
69 |
| 70 /** |
70 /** |
| 71 * Declares variables for an array that can be used with the convenience macros. |
71 * Declares variables for an array that can be used with the convenience macros. |
| 72 * |
72 * |
| 73 * The size and capacity variables will have `size_t` type. |
73 * The size and capacity variables will have `size_t` type. |