| 2493 | } |
| 2494 | |
| 2495 | CJSON_PUBLIC(cJSON *) cJSON_CreateStringReference(const char *string) |
| 2496 | { |
| 2497 | cJSON *item = cJSON_New_Item(&global_hooks); |
| 2498 | if (item != NULL) |
| 2499 | { |
| 2500 | item->type = cJSON_String | cJSON_IsReference; |
| 2501 | item->valuestring = (char*)cast_away_const(string); |
| 2502 | } |
| 2503 | |
| 2504 | return item; |
| 2505 | } |
| 2506 | |
| 2507 | CJSON_PUBLIC(cJSON *) cJSON_CreateObjectReference(const cJSON *child) |
| 2508 | { |
nothing calls this directly
no test coverage detected