| 2362 | } |
| 2363 | |
| 2364 | CJSON_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 | |
| 2374 | CJSON_PUBLIC(cJSON *) cJSON_CreateRaw(const char *raw) |
| 2375 | { |
nothing calls this directly
no test coverage detected