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

Function cJSON_CreateObjectReference

external/cJSON/cJSON.c:2560–2569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2558}
2559
2560CJSON_PUBLIC(cJSON *) cJSON_CreateObjectReference(const cJSON *child)
2561{
2562 cJSON *item = cJSON_New_Item(&global_hooks);
2563 if (item != NULL) {
2564 item->type = cJSON_Object | cJSON_IsReference;
2565 item->child = (cJSON*)cast_away_const(child);
2566 }
2567
2568 return item;
2569}
2570
2571CJSON_PUBLIC(cJSON *) cJSON_CreateArrayReference(const cJSON *child) {
2572 cJSON *item = cJSON_New_Item(&global_hooks);

Callers

nothing calls this directly

Calls 2

cJSON_New_ItemFunction · 0.85
cast_away_constFunction · 0.85

Tested by

no test coverage detected