| 2145 | } |
| 2146 | |
| 2147 | CJSON_PUBLIC(cJSON*) cJSON_AddRawToObject(cJSON * const object, const char * const name, const char * const raw) |
| 2148 | { |
| 2149 | cJSON *raw_item = cJSON_CreateRaw(raw); |
| 2150 | if (add_item_to_object(object, name, raw_item, &global_hooks, false)) |
| 2151 | { |
| 2152 | return raw_item; |
| 2153 | } |
| 2154 | |
| 2155 | cJSON_Delete(raw_item); |
| 2156 | return NULL; |
| 2157 | } |
| 2158 | |
| 2159 | CJSON_PUBLIC(cJSON*) cJSON_AddObjectToObject(cJSON * const object, const char * const name) |
| 2160 | { |
nothing calls this directly
no test coverage detected