327 * |
327 * |
328 * @param list (@c CxList*) the list |
328 * @param list (@c CxList*) the list |
329 * @param key (@c CxHashKey, @c char*, @c cxstring, or @c cxmutstr) the key |
329 * @param key (@c CxHashKey, @c char*, @c cxstring, or @c cxmutstr) the key |
330 * @param value (@c void*) the value |
330 * @param value (@c void*) the value |
331 * @retval zero success |
331 * @retval zero success |
332 * @retval non-zero memory allocation failure or the index is out of bounds |
332 * @retval non-zero memory allocation failure |
333 */ |
333 */ |
334 #define cxKvListAdd(list, index, key, value) cxKvListInsert(list, list->collection.size, key, value) |
334 #define cxKvListAdd(list, key, value) cxKvListInsert(list, (list)->collection.size, key, value) |
335 |
335 |
336 #ifdef __cplusplus |
336 #ifdef __cplusplus |
337 } // extern "C" |
337 } // extern "C" |
338 #endif |
338 #endif |
339 |
339 |