| 2075 | } |
| 2076 | |
| 2077 | CJSON_PUBLIC(cJSON_bool) cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item) |
| 2078 | { |
| 2079 | if (array == NULL) |
| 2080 | { |
| 2081 | return false; |
| 2082 | } |
| 2083 | |
| 2084 | return add_item_to_array(array, create_reference(item, &global_hooks)); |
| 2085 | } |
| 2086 | |
| 2087 | CJSON_PUBLIC(cJSON_bool) cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item) |
| 2088 | { |
no test coverage detected