| 2480 | } |
| 2481 | |
| 2482 | CJSON_PUBLIC(cJSON *) cJSON_CreateObjectReference(const cJSON *child) |
| 2483 | { |
| 2484 | cJSON *item = cJSON_New_Item(&global_hooks); |
| 2485 | if (item != NULL) { |
| 2486 | item->type = cJSON_Object | cJSON_IsReference; |
| 2487 | item->child = (cJSON*)cast_away_const(child); |
| 2488 | } |
| 2489 | |
| 2490 | return item; |
| 2491 | } |
| 2492 | |
| 2493 | CJSON_PUBLIC(cJSON *) cJSON_CreateArrayReference(const cJSON *child) { |
| 2494 | cJSON *item = cJSON_New_Item(&global_hooks); |
nothing calls this directly
no test coverage detected