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

Function cJSON_AddItemReferenceToObject

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

Source from the content-addressed store, hash-verified

1959}
1960
1961CJSON_PUBLIC(void) cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item)
1962{
1963 if ((object == NULL) || (string == NULL))
1964 {
1965 return;
1966 }
1967
1968 add_item_to_object(object, string, create_reference(item, &global_hooks), &global_hooks, false);
1969}
1970
1971CJSON_PUBLIC(cJSON*) cJSON_AddNullToObject(cJSON * const object, const char * const name)
1972{

Callers

nothing calls this directly

Calls 2

add_item_to_objectFunction · 0.85
create_referenceFunction · 0.85

Tested by

no test coverage detected