| 2013 | } |
| 2014 | |
| 2015 | CJSON_PUBLIC(cJSON*) cJSON_AddBoolToObject(cJSON * const object, const char * const name, const cJSON_bool boolean) |
| 2016 | { |
| 2017 | cJSON *bool_item = cJSON_CreateBool(boolean); |
| 2018 | if (add_item_to_object(object, name, bool_item, &global_hooks, false)) |
| 2019 | { |
| 2020 | return bool_item; |
| 2021 | } |
| 2022 | |
| 2023 | cJSON_Delete(bool_item); |
| 2024 | return NULL; |
| 2025 | } |
| 2026 | |
| 2027 | CJSON_PUBLIC(cJSON*) cJSON_AddNumberToObject(cJSON * const object, const char * const name, const double number) |
| 2028 | { |
nothing calls this directly
no test coverage detected