| 2041 | } |
| 2042 | |
| 2043 | CJSON_PUBLIC(cJSON*) cJSON_AddRawToObject(cJSON * const object, const char * const name, const char * const raw) |
| 2044 | { |
| 2045 | cJSON *raw_item = cJSON_CreateRaw(raw); |
| 2046 | if (add_item_to_object(object, name, raw_item, &global_hooks, false)) |
| 2047 | { |
| 2048 | return raw_item; |
| 2049 | } |
| 2050 | |
| 2051 | cJSON_Delete(raw_item); |
| 2052 | return NULL; |
| 2053 | } |
| 2054 | |
| 2055 | CJSON_PUBLIC(cJSON*) cJSON_AddObjectToObject(cJSON * const object, const char * const name) |
| 2056 | { |
nothing calls this directly
no test coverage detected