| 2167 | } |
| 2168 | |
| 2169 | CJSON_PUBLIC(cJSON*) cJSON_AddRawToObject(cJSON * const object, const char * const name, const char * const raw) |
| 2170 | { |
| 2171 | cJSON *raw_item = cJSON_CreateRaw(raw); |
| 2172 | if (add_item_to_object(object, name, raw_item, &global_hooks, false)) |
| 2173 | { |
| 2174 | return raw_item; |
| 2175 | } |
| 2176 | |
| 2177 | cJSON_Delete(raw_item); |
| 2178 | return NULL; |
| 2179 | } |
| 2180 | |
| 2181 | CJSON_PUBLIC(cJSON*) cJSON_AddObjectToObject(cJSON * const object, const char * const name) |
| 2182 | { |
nothing calls this directly
no test coverage detected