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