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

Function cJSON_AddBoolToObject

external/cJSON/cJSON.c:2186–2196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2184}
2185
2186CJSON_PUBLIC(cJSON*) cJSON_AddBoolToObject(cJSON * const object, const char * const name, const cJSON_bool boolean)
2187{
2188 cJSON *bool_item = cJSON_CreateBool(boolean);
2189 if (add_item_to_object(object, name, bool_item, &global_hooks, false))
2190 {
2191 return bool_item;
2192 }
2193
2194 cJSON_Delete(bool_item);
2195 return NULL;
2196}
2197
2198CJSON_PUBLIC(cJSON*) cJSON_AddNumberToObject(cJSON * const object, const char * const name, const double number)
2199{

Callers

nothing calls this directly

Calls 3

cJSON_CreateBoolFunction · 0.85
add_item_to_objectFunction · 0.85
cJSON_DeleteFunction · 0.85

Tested by

no test coverage detected