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