MCPcopy Index your code
hub / github.com/DaveGamble/cJSON / cJSON_CreateObjectReference

Function cJSON_CreateObjectReference

cJSON.c:2545–2554  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2543}
2544
2545CJSON_PUBLIC(cJSON *) cJSON_CreateObjectReference(const cJSON *child)
2546{
2547 cJSON *item = cJSON_New_Item(&global_hooks);
2548 if (item != NULL) {
2549 item->type = cJSON_Object | cJSON_IsReference;
2550 item->child = (cJSON*)cast_away_const(child);
2551 }
2552
2553 return item;
2554}
2555
2556CJSON_PUBLIC(cJSON *) cJSON_CreateArrayReference(const cJSON *child) {
2557 cJSON *item = cJSON_New_Item(&global_hooks);

Calls 2

cJSON_New_ItemFunction · 0.85
cast_away_constFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…