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

Function cJSON_CreateArrayReference

svf/lib/Util/cJSON.cpp:2503–2513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2501}
2502
2503CJSON_PUBLIC(cJSON *) cJSON_CreateArrayReference(const cJSON *child)
2504{
2505 cJSON *item = cJSON_New_Item(&global_hooks);
2506 if (item != NULL)
2507 {
2508 item->type = cJSON_Array | cJSON_IsReference;
2509 item->child = (cJSON*)cast_away_const(child);
2510 }
2511
2512 return item;
2513}
2514
2515CJSON_PUBLIC(cJSON *) cJSON_CreateRaw(const char *raw)
2516{

Callers

nothing calls this directly

Calls 2

cJSON_New_ItemFunction · 0.85
cast_away_constFunction · 0.85

Tested by

no test coverage detected