| 2068 | } |
| 2069 | |
| 2070 | CJSON_PUBLIC(cJSON_bool) cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item) |
| 2071 | { |
| 2072 | if (array == NULL) |
| 2073 | { |
| 2074 | return false; |
| 2075 | } |
| 2076 | |
| 2077 | return add_item_to_array(array, create_reference(item, &global_hooks)); |
| 2078 | } |
| 2079 | |
| 2080 | CJSON_PUBLIC(cJSON_bool) cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item) |
| 2081 | { |
no test coverage detected
searching dependent graphs…