| 2184 | } |
| 2185 | |
| 2186 | CJSON_PUBLIC(cJSON*) cJSON_AddArrayToObject(cJSON * const object, const char * const name) |
| 2187 | { |
| 2188 | cJSON *array = cJSON_CreateArray(); |
| 2189 | if (add_item_to_object(object, name, array, &global_hooks, false)) |
| 2190 | { |
| 2191 | return array; |
| 2192 | } |
| 2193 | |
| 2194 | cJSON_Delete(array); |
| 2195 | return NULL; |
| 2196 | } |
| 2197 | |
| 2198 | CJSON_PUBLIC(cJSON *) cJSON_DetachItemViaPointer(cJSON *parent, cJSON * const item) |
| 2199 | { |
nothing calls this directly
no test coverage detected
searching dependent graphs…