| 2085 | } |
| 2086 | |
| 2087 | CJSON_PUBLIC(cJSON*) cJSON_AddTrueToObject(cJSON * const object, const char * const name) |
| 2088 | { |
| 2089 | cJSON *true_item = cJSON_CreateTrue(); |
| 2090 | if (add_item_to_object(object, name, true_item, &global_hooks, false)) |
| 2091 | { |
| 2092 | return true_item; |
| 2093 | } |
| 2094 | |
| 2095 | cJSON_Delete(true_item); |
| 2096 | return NULL; |
| 2097 | } |
| 2098 | |
| 2099 | CJSON_PUBLIC(cJSON*) cJSON_AddFalseToObject(cJSON * const object, const char * const name) |
| 2100 | { |
nothing calls this directly
no test coverage detected