| 2172 | } |
| 2173 | |
| 2174 | CJSON_PUBLIC(cJSON*) cJSON_AddFalseToObject(cJSON * const object, const char * const name) |
| 2175 | { |
| 2176 | cJSON *false_item = cJSON_CreateFalse(); |
| 2177 | if (add_item_to_object(object, name, false_item, &global_hooks, false)) |
| 2178 | { |
| 2179 | return false_item; |
| 2180 | } |
| 2181 | |
| 2182 | cJSON_Delete(false_item); |
| 2183 | return NULL; |
| 2184 | } |
| 2185 | |
| 2186 | CJSON_PUBLIC(cJSON*) cJSON_AddBoolToObject(cJSON * const object, const char * const name, const cJSON_bool boolean) |
| 2187 | { |
nothing calls this directly
no test coverage detected