| 2097 | } |
| 2098 | |
| 2099 | CJSON_PUBLIC(cJSON*) cJSON_AddFalseToObject(cJSON * const object, const char * const name) |
| 2100 | { |
| 2101 | cJSON *false_item = cJSON_CreateFalse(); |
| 2102 | if (add_item_to_object(object, name, false_item, &global_hooks, false)) |
| 2103 | { |
| 2104 | return false_item; |
| 2105 | } |
| 2106 | |
| 2107 | cJSON_Delete(false_item); |
| 2108 | return NULL; |
| 2109 | } |
| 2110 | |
| 2111 | CJSON_PUBLIC(cJSON*) cJSON_AddBoolToObject(cJSON * const object, const char * const name, const cJSON_bool boolean) |
| 2112 | { |
nothing calls this directly
no test coverage detected