MCPcopy Create free account
hub / github.com/SVF-tools/SVF / cJSON_CreateObjectReference

Function cJSON_CreateObjectReference

svf/lib/Util/cJSON.cpp:2491–2501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2489}
2490
2491CJSON_PUBLIC(cJSON *) cJSON_CreateObjectReference(const cJSON *child)
2492{
2493 cJSON *item = cJSON_New_Item(&global_hooks);
2494 if (item != NULL)
2495 {
2496 item->type = cJSON_Object | cJSON_IsReference;
2497 item->child = (cJSON*)cast_away_const(child);
2498 }
2499
2500 return item;
2501}
2502
2503CJSON_PUBLIC(cJSON *) cJSON_CreateArrayReference(const cJSON *child)
2504{

Callers

nothing calls this directly

Calls 2

cJSON_New_ItemFunction · 0.85
cast_away_constFunction · 0.85

Tested by

no test coverage detected