| 2505 | } |
| 2506 | |
| 2507 | CJSON_PUBLIC(cJSON *) cJSON_CreateObjectReference(const cJSON *child) |
| 2508 | { |
| 2509 | cJSON *item = cJSON_New_Item(&global_hooks); |
| 2510 | if (item != NULL) { |
| 2511 | item->type = cJSON_Object | cJSON_IsReference; |
| 2512 | item->child = (cJSON*)cast_away_const(child); |
| 2513 | } |
| 2514 | |
| 2515 | return item; |
| 2516 | } |
| 2517 | |
| 2518 | CJSON_PUBLIC(cJSON *) cJSON_CreateArrayReference(const cJSON *child) { |
| 2519 | cJSON *item = cJSON_New_Item(&global_hooks); |
nothing calls this directly
no test coverage detected