| 2095 | } |
| 2096 | |
| 2097 | CJSON_PUBLIC(cJSON*) cJSON_AddTrueToObject(cJSON * const object, const char * const name) |
| 2098 | { |
| 2099 | cJSON *true_item = cJSON_CreateTrue(); |
| 2100 | if (add_item_to_object(object, name, true_item, &global_hooks, false)) |
| 2101 | { |
| 2102 | return true_item; |
| 2103 | } |
| 2104 | |
| 2105 | cJSON_Delete(true_item); |
| 2106 | return NULL; |
| 2107 | } |
| 2108 | |
| 2109 | CJSON_PUBLIC(cJSON*) cJSON_AddFalseToObject(cJSON * const object, const char * const name) |
| 2110 | { |
nothing calls this directly
no test coverage detected