MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / cJSON_AddItemReferenceToObject

Function cJSON_AddItemReferenceToObject

external/cJSON/cJSON.c:2140–2148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2138}
2139
2140CJSON_PUBLIC(cJSON_bool) cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item)
2141{
2142 if ((object == NULL) || (string == NULL))
2143 {
2144 return false;
2145 }
2146
2147 return add_item_to_object(object, string, create_reference(item, &global_hooks), &global_hooks, false);
2148}
2149
2150CJSON_PUBLIC(cJSON*) cJSON_AddNullToObject(cJSON * const object, const char * const name)
2151{

Callers

nothing calls this directly

Calls 2

add_item_to_objectFunction · 0.85
create_referenceFunction · 0.85

Tested by

no test coverage detected