MCPcopy Create free account
hub / github.com/alibaba/CicadaPlayer / cJSON_AddItemReferenceToObject

Function cJSON_AddItemReferenceToObject

framework/utils/cJSON.c:1953–1961  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1951}
1952
1953CJSON_PUBLIC(void) cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item)
1954{
1955if ((object == NULL) || (string == NULL))
1956{
1957return;
1958}
1959
1960add_item_to_object(object, string, create_reference(item, &global_hooks), &global_hooks, false);
1961}
1962
1963CJSON_PUBLIC(cJSON*) cJSON_AddNullToObject(cJSON * const object, const char * const name)
1964{

Callers

nothing calls this directly

Calls 2

add_item_to_objectFunction · 0.85
create_referenceFunction · 0.85

Tested by

no test coverage detected