| 2484 | } |
| 2485 | |
| 2486 | CJSON_PUBLIC(cJSON *) cJSON_CreateArrayReference(const cJSON *child) { |
| 2487 | cJSON *item = cJSON_New_Item(&global_hooks); |
| 2488 | if (item != NULL) { |
| 2489 | item->type = cJSON_Array | cJSON_IsReference; |
| 2490 | item->child = (cJSON*)cast_away_const(child); |
| 2491 | } |
| 2492 | |
| 2493 | return item; |
| 2494 | } |
| 2495 | |
| 2496 | CJSON_PUBLIC(cJSON *) cJSON_CreateRaw(const char *raw) |
| 2497 | { |
nothing calls this directly
no test coverage detected