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

Function cJSON_AddTrueToObject

external/cJSON/cJSON.c:2162–2172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2160}
2161
2162CJSON_PUBLIC(cJSON*) cJSON_AddTrueToObject(cJSON * const object, const char * const name)
2163{
2164 cJSON *true_item = cJSON_CreateTrue();
2165 if (add_item_to_object(object, name, true_item, &global_hooks, false))
2166 {
2167 return true_item;
2168 }
2169
2170 cJSON_Delete(true_item);
2171 return NULL;
2172}
2173
2174CJSON_PUBLIC(cJSON*) cJSON_AddFalseToObject(cJSON * const object, const char * const name)
2175{

Callers

nothing calls this directly

Calls 3

cJSON_CreateTrueFunction · 0.85
add_item_to_objectFunction · 0.85
cJSON_DeleteFunction · 0.85

Tested by

no test coverage detected