MCPcopy Create free account
hub / github.com/ByConity/ByConity / cJSON_AddFalseToObject

Function cJSON_AddFalseToObject

contrib/cJSON/cJSON.cpp:2003–2013  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2001}
2002
2003CJSON_PUBLIC(cJSON*) cJSON_AddFalseToObject(cJSON * const object, const char * const name)
2004{
2005 cJSON *false_item = cJSON_CreateFalse();
2006 if (add_item_to_object(object, name, false_item, &global_hooks, false))
2007 {
2008 return false_item;
2009 }
2010
2011 cJSON_Delete(false_item);
2012 return NULL;
2013}
2014
2015CJSON_PUBLIC(cJSON*) cJSON_AddBoolToObject(cJSON * const object, const char * const name, const cJSON_bool boolean)
2016{

Callers

nothing calls this directly

Calls 3

cJSON_CreateFalseFunction · 0.85
add_item_to_objectFunction · 0.85
cJSON_DeleteFunction · 0.85

Tested by

no test coverage detected