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