| 2112 | } |
| 2113 | |
| 2114 | CJSON_PUBLIC(cJSON*) cJSON_AddFalseToObject(cJSON * const object, const char * const name) |
| 2115 | { |
| 2116 | cJSON *false_item = cJSON_CreateFalse(); |
| 2117 | if (add_item_to_object(object, name, false_item, &global_hooks, false)) |
| 2118 | { |
| 2119 | return false_item; |
| 2120 | } |
| 2121 | |
| 2122 | cJSON_Delete(false_item); |
| 2123 | return NULL; |
| 2124 | } |
| 2125 | |
| 2126 | CJSON_PUBLIC(cJSON*) cJSON_AddBoolToObject(cJSON * const object, const char * const name, const cJSON_bool boolean) |
| 2127 | { |
nothing calls this directly
no test coverage detected
searching dependent graphs…