MCPcopy Create free account
hub / github.com/Tencent/Hardcoder / cJSON_AddItemReferenceToArray

Function cJSON_AddItemReferenceToArray

libapp2sys/src/main/cpp/cjson/cJSON.c:1951–1959  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1949}
1950
1951CJSON_PUBLIC(void) cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item)
1952{
1953 if (array == NULL)
1954 {
1955 return;
1956 }
1957
1958 add_item_to_array(array, create_reference(item, &global_hooks));
1959}
1960
1961CJSON_PUBLIC(void) cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item)
1962{

Callers 1

cJSON.hFile · 0.85

Calls 2

add_item_to_arrayFunction · 0.85
create_referenceFunction · 0.85

Tested by

no test coverage detected