| 2128 | } |
| 2129 | |
| 2130 | CJSON_PUBLIC(cJSON_bool) cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item) |
| 2131 | { |
| 2132 | if (array == NULL) |
| 2133 | { |
| 2134 | return false; |
| 2135 | } |
| 2136 | |
| 2137 | return add_item_to_array(array, create_reference(item, &global_hooks)); |
| 2138 | } |
| 2139 | |
| 2140 | CJSON_PUBLIC(cJSON_bool) cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item) |
| 2141 | { |
no test coverage detected