| 2491 | } |
| 2492 | |
| 2493 | CJSON_PUBLIC(cJSON *) cJSON_CreateArrayReference(const cJSON *child) { |
| 2494 | cJSON *item = cJSON_New_Item(&global_hooks); |
| 2495 | if (item != NULL) { |
| 2496 | item->type = cJSON_Array | cJSON_IsReference; |
| 2497 | item->child = (cJSON*)cast_away_const(child); |
| 2498 | } |
| 2499 | |
| 2500 | return item; |
| 2501 | } |
| 2502 | |
| 2503 | CJSON_PUBLIC(cJSON *) cJSON_CreateRaw(const char *raw) |
| 2504 | { |
nothing calls this directly
no test coverage detected