| 2073 | } |
| 2074 | |
| 2075 | CJSON_PUBLIC(cJSON*) cJSON_AddArrayToObject(cJSON * const object, const char * const name) |
| 2076 | { |
| 2077 | cJSON *array = cJSON_CreateArray(); |
| 2078 | if (add_item_to_object(object, name, array, &global_hooks, false)) |
| 2079 | { |
| 2080 | return array; |
| 2081 | } |
| 2082 | |
| 2083 | cJSON_Delete(array); |
| 2084 | return NULL; |
| 2085 | } |
| 2086 | |
| 2087 | CJSON_PUBLIC(cJSON *) cJSON_DetachItemViaPointer(cJSON *parent, cJSON * const item) |
| 2088 | { |
nothing calls this directly
no test coverage detected