| 2065 | } |
| 2066 | |
| 2067 | CJSON_PUBLIC(cJSON*) cJSON_AddArrayToObject(cJSON * const object, const char * const name) |
| 2068 | { |
| 2069 | cJSON *array = cJSON_CreateArray(); |
| 2070 | if (add_item_to_object(object, name, array, &global_hooks, false)) |
| 2071 | { |
| 2072 | return array; |
| 2073 | } |
| 2074 | |
| 2075 | cJSON_Delete(array); |
| 2076 | return NULL; |
| 2077 | } |
| 2078 | |
| 2079 | CJSON_PUBLIC(cJSON *) cJSON_DetachItemViaPointer(cJSON *parent, cJSON * const item) |
| 2080 | { |
nothing calls this directly
no test coverage detected