| 2053 | } |
| 2054 | |
| 2055 | CJSON_PUBLIC(cJSON_bool) cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item) |
| 2056 | { |
| 2057 | if (array == NULL) |
| 2058 | { |
| 2059 | return false; |
| 2060 | } |
| 2061 | |
| 2062 | return add_item_to_array(array, create_reference(item, &global_hooks)); |
| 2063 | } |
| 2064 | |
| 2065 | CJSON_PUBLIC(cJSON_bool) cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item) |
| 2066 | { |
no test coverage detected