| 2063 | } |
| 2064 | |
| 2065 | CJSON_PUBLIC(cJSON_bool) cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item) |
| 2066 | { |
| 2067 | if ((object == NULL) || (string == NULL)) |
| 2068 | { |
| 2069 | return false; |
| 2070 | } |
| 2071 | |
| 2072 | return add_item_to_object(object, string, create_reference(item, &global_hooks), &global_hooks, false); |
| 2073 | } |
| 2074 | |
| 2075 | CJSON_PUBLIC(cJSON*) cJSON_AddNullToObject(cJSON * const object, const char * const name) |
| 2076 | { |
nothing calls this directly
no test coverage detected