| 2351 | } |
| 2352 | |
| 2353 | CJSON_PUBLIC(cJSON *) cJSON_CreateObjectReference(const cJSON *child) |
| 2354 | { |
| 2355 | cJSON *item = cJSON_New_Item(&global_hooks); |
| 2356 | if (item != NULL) { |
| 2357 | item->type = cJSON_Object | cJSON_IsReference; |
| 2358 | item->child = (cJSON*)cast_away_const(child); |
| 2359 | } |
| 2360 | |
| 2361 | return item; |
| 2362 | } |
| 2363 | |
| 2364 | CJSON_PUBLIC(cJSON *) cJSON_CreateArrayReference(const cJSON *child) { |
| 2365 | cJSON *item = cJSON_New_Item(&global_hooks); |
nothing calls this directly
no test coverage detected