| 2100 | } |
| 2101 | |
| 2102 | CJSON_PUBLIC(cJSON*) cJSON_AddTrueToObject(cJSON * const object, const char * const name) |
| 2103 | { |
| 2104 | cJSON *true_item = cJSON_CreateTrue(); |
| 2105 | if (add_item_to_object(object, name, true_item, &global_hooks, false)) |
| 2106 | { |
| 2107 | return true_item; |
| 2108 | } |
| 2109 | |
| 2110 | cJSON_Delete(true_item); |
| 2111 | return NULL; |
| 2112 | } |
| 2113 | |
| 2114 | CJSON_PUBLIC(cJSON*) cJSON_AddFalseToObject(cJSON * const object, const char * const name) |
| 2115 | { |
no test coverage detected
searching dependent graphs…