| 2220 | } |
| 2221 | |
| 2222 | CJSON_PUBLIC(cJSON*) cJSON_AddRawToObject(cJSON * const object, const char * const name, const char * const raw) |
| 2223 | { |
| 2224 | cJSON *raw_item = cJSON_CreateRaw(raw); |
| 2225 | if (add_item_to_object(object, name, raw_item, &global_hooks, false)) |
| 2226 | { |
| 2227 | return raw_item; |
| 2228 | } |
| 2229 | |
| 2230 | cJSON_Delete(raw_item); |
| 2231 | return NULL; |
| 2232 | } |
| 2233 | |
| 2234 | CJSON_PUBLIC(cJSON*) cJSON_AddObjectToObject(cJSON * const object, const char * const name) |
| 2235 | { |
nothing calls this directly
no test coverage detected