MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / cJSON_AddRawToObject

Function cJSON_AddRawToObject

TheForceEngine/TFE_System/cJSON.c:2156–2166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2154}
2155
2156CJSON_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
2168CJSON_PUBLIC(cJSON*) cJSON_AddObjectToObject(cJSON * const object, const char * const name)
2169{

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