| 2138 | } |
| 2139 | |
| 2140 | CJSON_PUBLIC(cJSON_bool) cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item) |
| 2141 | { |
| 2142 | if ((object == NULL) || (string == NULL)) |
| 2143 | { |
| 2144 | return false; |
| 2145 | } |
| 2146 | |
| 2147 | return add_item_to_object(object, string, create_reference(item, &global_hooks), &global_hooks, false); |
| 2148 | } |
| 2149 | |
| 2150 | CJSON_PUBLIC(cJSON*) cJSON_AddNullToObject(cJSON * const object, const char * const name) |
| 2151 | { |
nothing calls this directly
no test coverage detected