| 2205 | } |
| 2206 | |
| 2207 | CJSON_PUBLIC(cJSON*) cJSON_AddRawToObject(cJSON * const object, const char * const name, const char * const raw) |
| 2208 | { |
| 2209 | cJSON *raw_item = cJSON_CreateRaw(raw); |
| 2210 | if (add_item_to_object(object, name, raw_item, &global_hooks, false)) |
| 2211 | { |
| 2212 | return raw_item; |
| 2213 | } |
| 2214 | |
| 2215 | cJSON_Delete(raw_item); |
| 2216 | return NULL; |
| 2217 | } |
| 2218 | |
| 2219 | CJSON_PUBLIC(cJSON*) cJSON_AddObjectToObject(cJSON * const object, const char * const name) |
| 2220 | { |
no test coverage detected
searching dependent graphs…