| 2516 | } |
| 2517 | |
| 2518 | CJSON_PUBLIC(cJSON *) cJSON_CreateArrayReference(const cJSON *child) { |
| 2519 | cJSON *item = cJSON_New_Item(&global_hooks); |
| 2520 | if (item != NULL) { |
| 2521 | item->type = cJSON_Array | cJSON_IsReference; |
| 2522 | item->child = (cJSON*)cast_away_const(child); |
| 2523 | } |
| 2524 | |
| 2525 | return item; |
| 2526 | } |
| 2527 | |
| 2528 | CJSON_PUBLIC(cJSON *) cJSON_CreateRaw(const char *raw) |
| 2529 | { |
nothing calls this directly
no test coverage detected