| 2154 | } |
| 2155 | |
| 2156 | CJSON_PUBLIC(cJSON*) cJSON_AddRawToObject(cJSON * const object, const char * const name, const char * const raw) |
| 2157 | { |
| 2158 | cJSON *raw_item = cJSON_CreateRaw(raw); |
| 2159 | if (add_item_to_object(object, name, raw_item, &global_hooks, false)) |
| 2160 | { |
| 2161 | return raw_item; |
| 2162 | } |
| 2163 | |
| 2164 | cJSON_Delete(raw_item); |
| 2165 | return NULL; |
| 2166 | } |
| 2167 | |
| 2168 | CJSON_PUBLIC(cJSON*) cJSON_AddObjectToObject(cJSON * const object, const char * const name) |
| 2169 | { |
nothing calls this directly
no test coverage detected