| 2169 | } |
| 2170 | |
| 2171 | CJSON_PUBLIC(cJSON*) cJSON_AddArrayToObject(cJSON * const object, const char * const name) |
| 2172 | { |
| 2173 | cJSON *array = cJSON_CreateArray(); |
| 2174 | if (add_item_to_object(object, name, array, &global_hooks, false)) |
| 2175 | { |
| 2176 | return array; |
| 2177 | } |
| 2178 | |
| 2179 | cJSON_Delete(array); |
| 2180 | return NULL; |
| 2181 | } |
| 2182 | |
| 2183 | CJSON_PUBLIC(cJSON *) cJSON_DetachItemViaPointer(cJSON *parent, cJSON * const item) |
| 2184 | { |
nothing calls this directly
no test coverage detected