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

Function cJSON_AddItemReferenceToArray

contrib/cJSON/cJSON.cpp:1959–1967  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1957}
1958
1959CJSON_PUBLIC(void) cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item)
1960{
1961 if (array == NULL)
1962 {
1963 return;
1964 }
1965
1966 add_item_to_array(array, create_reference(item, &global_hooks));
1967}
1968
1969CJSON_PUBLIC(void) cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item)
1970{

Callers 1

cJSON.hFile · 0.85

Calls 2

add_item_to_arrayFunction · 0.85
create_referenceFunction · 0.85

Tested by

no test coverage detected