| 2085 | } |
| 2086 | |
| 2087 | CJSON_PUBLIC(cJSON_bool) cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item) |
| 2088 | { |
| 2089 | if ((object == NULL) || (string == NULL)) |
| 2090 | { |
| 2091 | return false; |
| 2092 | } |
| 2093 | |
| 2094 | return add_item_to_object(object, string, create_reference(item, &global_hooks), &global_hooks, false); |
| 2095 | } |
| 2096 | |
| 2097 | CJSON_PUBLIC(cJSON*) cJSON_AddNullToObject(cJSON * const object, const char * const name) |
| 2098 | { |
nothing calls this directly
no test coverage detected