| 2160 | } |
| 2161 | |
| 2162 | CJSON_PUBLIC(cJSON*) cJSON_AddRawToObject(cJSON * const object, const char * const name, const char * const raw) |
| 2163 | { |
| 2164 | cJSON *raw_item = cJSON_CreateRaw(raw); |
| 2165 | if (add_item_to_object(object, name, raw_item, &global_hooks, false)) |
| 2166 | { |
| 2167 | return raw_item; |
| 2168 | } |
| 2169 | |
| 2170 | cJSON_Delete(raw_item); |
| 2171 | return NULL; |
| 2172 | } |
| 2173 | |
| 2174 | CJSON_PUBLIC(cJSON*) cJSON_AddObjectToObject(cJSON * const object, const char * const name) |
| 2175 | { |
nothing calls this directly
no test coverage detected
searching dependent graphs…