| 2473 | } |
| 2474 | |
| 2475 | CJSON_PUBLIC(cJSON *) cJSON_CreateObjectReference(const cJSON *child) |
| 2476 | { |
| 2477 | cJSON *item = cJSON_New_Item(&global_hooks); |
| 2478 | if (item != NULL) { |
| 2479 | item->type = cJSON_Object | cJSON_IsReference; |
| 2480 | item->child = (cJSON*)cast_away_const(child); |
| 2481 | } |
| 2482 | |
| 2483 | return item; |
| 2484 | } |
| 2485 | |
| 2486 | CJSON_PUBLIC(cJSON *) cJSON_CreateArrayReference(const cJSON *child) { |
| 2487 | cJSON *item = cJSON_New_Item(&global_hooks); |
nothing calls this directly
no test coverage detected