MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / cJSON_AddRawToObject

Function cJSON_AddRawToObject

external/cJSON/cJSON.c:2222–2232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2220}
2221
2222CJSON_PUBLIC(cJSON*) cJSON_AddRawToObject(cJSON * const object, const char * const name, const char * const raw)
2223{
2224 cJSON *raw_item = cJSON_CreateRaw(raw);
2225 if (add_item_to_object(object, name, raw_item, &global_hooks, false))
2226 {
2227 return raw_item;
2228 }
2229
2230 cJSON_Delete(raw_item);
2231 return NULL;
2232}
2233
2234CJSON_PUBLIC(cJSON*) cJSON_AddObjectToObject(cJSON * const object, const char * const name)
2235{

Callers

nothing calls this directly

Calls 3

cJSON_CreateRawFunction · 0.85
add_item_to_objectFunction · 0.85
cJSON_DeleteFunction · 0.85

Tested by

no test coverage detected