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

Function cJSON_AddNullToObject

TheForceEngine/TFE_System/cJSON.c:2084–2094  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2082}
2083
2084CJSON_PUBLIC(cJSON*) cJSON_AddNullToObject(cJSON * const object, const char * const name)
2085{
2086 cJSON *null = cJSON_CreateNull();
2087 if (add_item_to_object(object, name, null, &global_hooks, false))
2088 {
2089 return null;
2090 }
2091
2092 cJSON_Delete(null);
2093 return NULL;
2094}
2095
2096CJSON_PUBLIC(cJSON*) cJSON_AddTrueToObject(cJSON * const object, const char * const name)
2097{

Callers

nothing calls this directly

Calls 3

cJSON_CreateNullFunction · 0.85
add_item_to_objectFunction · 0.85
cJSON_DeleteFunction · 0.85

Tested by

no test coverage detected