| 2160 | } |
| 2161 | |
| 2162 | CJSON_PUBLIC(cJSON*) cJSON_AddTrueToObject(cJSON * const object, const char * const name) |
| 2163 | { |
| 2164 | cJSON *true_item = cJSON_CreateTrue(); |
| 2165 | if (add_item_to_object(object, name, true_item, &global_hooks, false)) |
| 2166 | { |
| 2167 | return true_item; |
| 2168 | } |
| 2169 | |
| 2170 | cJSON_Delete(true_item); |
| 2171 | return NULL; |
| 2172 | } |
| 2173 | |
| 2174 | CJSON_PUBLIC(cJSON*) cJSON_AddFalseToObject(cJSON * const object, const char * const name) |
| 2175 | { |
nothing calls this directly
no test coverage detected