| 2558 | } |
| 2559 | |
| 2560 | CJSON_PUBLIC(cJSON *) cJSON_CreateObjectReference(const cJSON *child) |
| 2561 | { |
| 2562 | cJSON *item = cJSON_New_Item(&global_hooks); |
| 2563 | if (item != NULL) { |
| 2564 | item->type = cJSON_Object | cJSON_IsReference; |
| 2565 | item->child = (cJSON*)cast_away_const(child); |
| 2566 | } |
| 2567 | |
| 2568 | return item; |
| 2569 | } |
| 2570 | |
| 2571 | CJSON_PUBLIC(cJSON *) cJSON_CreateArrayReference(const cJSON *child) { |
| 2572 | cJSON *item = cJSON_New_Item(&global_hooks); |
nothing calls this directly
no test coverage detected