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

Function cJSON_AddItemReferenceToObject

common/map_sdk/transmission/src/cJSON.cpp:720–722  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

718}
719void cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item) { cJSON_AddItemToArray(array, create_reference(item)); }
720void cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item) {
721 cJSON_AddItemToObject(object, string, create_reference(item));
722}
723
724cJSON *cJSON_DetachItemFromArray(cJSON *array, int which) {
725 cJSON *c = array->child;

Callers

nothing calls this directly

Calls 2

cJSON_AddItemToObjectFunction · 0.85
create_referenceFunction · 0.85

Tested by

no test coverage detected