MCPcopy Create free account
hub / github.com/Tencent/Hardcoder / cJSON_CreateArrayReference

Function cJSON_CreateArrayReference

libapp2sys/src/main/cpp/cjson/cJSON.c:2364–2372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2362}
2363
2364CJSON_PUBLIC(cJSON *) cJSON_CreateArrayReference(const cJSON *child) {
2365 cJSON *item = cJSON_New_Item(&global_hooks);
2366 if (item != NULL) {
2367 item->type = cJSON_Array | cJSON_IsReference;
2368 item->child = (cJSON*)cast_away_const(child);
2369 }
2370
2371 return item;
2372}
2373
2374CJSON_PUBLIC(cJSON *) cJSON_CreateRaw(const char *raw)
2375{

Callers

nothing calls this directly

Calls 2

cJSON_New_ItemFunction · 0.85
cast_away_constFunction · 0.85

Tested by

no test coverage detected