| 2179 | } |
| 2180 | |
| 2181 | CJSON_PUBLIC(cJSON*) cJSON_AddArrayToObject(cJSON * const object, const char * const name) |
| 2182 | { |
| 2183 | cJSON *array = cJSON_CreateArray(); |
| 2184 | if (add_item_to_object(object, name, array, &global_hooks, false)) |
| 2185 | { |
| 2186 | return array; |
| 2187 | } |
| 2188 | |
| 2189 | cJSON_Delete(array); |
| 2190 | return NULL; |
| 2191 | } |
| 2192 | |
| 2193 | CJSON_PUBLIC(cJSON *) cJSON_DetachItemViaPointer(cJSON *parent, cJSON * const item) |
| 2194 | { |
nothing calls this directly
no test coverage detected