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