MCPcopy Create free account
hub / github.com/alibaba/CicadaPlayer / cJSON_AddTrueToObject

Function cJSON_AddTrueToObject

framework/utils/cJSON.c:1975–1985  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1973}
1974
1975CJSON_PUBLIC(cJSON*) cJSON_AddTrueToObject(cJSON * const object, const char * const name)
1976{
1977cJSON *true_item = cJSON_CreateTrue();
1978if (add_item_to_object(object, name, true_item, &global_hooks, false))
1979{
1980return true_item;
1981}
1982
1983cJSON_Delete(true_item);
1984return NULL;
1985}
1986
1987CJSON_PUBLIC(cJSON*) cJSON_AddFalseToObject(cJSON * const object, const char * const name)
1988{

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