MCPcopy Create free account
hub / github.com/ByConity/ByConity / cJSON_AddItemReferenceToObject

Function cJSON_AddItemReferenceToObject

contrib/cJSON/cJSON.cpp:1969–1977  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1967}
1968
1969CJSON_PUBLIC(void) cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item)
1970{
1971 if ((object == NULL) || (string == NULL))
1972 {
1973 return;
1974 }
1975
1976 add_item_to_object(object, string, create_reference(item, &global_hooks), &global_hooks, false);
1977}
1978
1979CJSON_PUBLIC(cJSON*) cJSON_AddNullToObject(cJSON * const object, const char * const name)
1980{

Callers

nothing calls this directly

Calls 2

add_item_to_objectFunction · 0.85
create_referenceFunction · 0.85

Tested by

no test coverage detected