| 2501 | } |
| 2502 | |
| 2503 | CJSON_PUBLIC(cJSON *) cJSON_CreateArrayReference(const cJSON *child) |
| 2504 | { |
| 2505 | cJSON *item = cJSON_New_Item(&global_hooks); |
| 2506 | if (item != NULL) |
| 2507 | { |
| 2508 | item->type = cJSON_Array | cJSON_IsReference; |
| 2509 | item->child = (cJSON*)cast_away_const(child); |
| 2510 | } |
| 2511 | |
| 2512 | return item; |
| 2513 | } |
| 2514 | |
| 2515 | CJSON_PUBLIC(cJSON *) cJSON_CreateRaw(const char *raw) |
| 2516 | { |
nothing calls this directly
no test coverage detected