| 2244 | } |
| 2245 | |
| 2246 | CJSON_PUBLIC(cJSON*) cJSON_AddArrayToObject(cJSON * const object, const char * const name) |
| 2247 | { |
| 2248 | cJSON *array = cJSON_CreateArray(); |
| 2249 | if (add_item_to_object(object, name, array, &global_hooks, false)) |
| 2250 | { |
| 2251 | return array; |
| 2252 | } |
| 2253 | |
| 2254 | cJSON_Delete(array); |
| 2255 | return NULL; |
| 2256 | } |
| 2257 | |
| 2258 | CJSON_PUBLIC(cJSON *) cJSON_DetachItemViaPointer(cJSON *parent, cJSON * const item) |
| 2259 | { |
nothing calls this directly
no test coverage detected