| 2145 | } |
| 2146 | |
| 2147 | CJSON_PUBLIC(cJSON*) cJSON_AddTrueToObject(cJSON * const object, const char * const name) |
| 2148 | { |
| 2149 | cJSON *true_item = cJSON_CreateTrue(); |
| 2150 | if (add_item_to_object(object, name, true_item, &global_hooks, false)) |
| 2151 | { |
| 2152 | return true_item; |
| 2153 | } |
| 2154 | |
| 2155 | cJSON_Delete(true_item); |
| 2156 | return NULL; |
| 2157 | } |
| 2158 | |
| 2159 | CJSON_PUBLIC(cJSON*) cJSON_AddFalseToObject(cJSON * const object, const char * const name) |
| 2160 | { |
no test coverage detected
searching dependent graphs…