| 2049 | } |
| 2050 | |
| 2051 | CJSON_PUBLIC(cJSON*) cJSON_AddRawToObject(cJSON * const object, const char * const name, const char * const raw) |
| 2052 | { |
| 2053 | cJSON *raw_item = cJSON_CreateRaw(raw); |
| 2054 | if (add_item_to_object(object, name, raw_item, &global_hooks, false)) |
| 2055 | { |
| 2056 | return raw_item; |
| 2057 | } |
| 2058 | |
| 2059 | cJSON_Delete(raw_item); |
| 2060 | return NULL; |
| 2061 | } |
| 2062 | |
| 2063 | CJSON_PUBLIC(cJSON*) cJSON_AddObjectToObject(cJSON * const object, const char * const name) |
| 2064 | { |
nothing calls this directly
no test coverage detected