| 2107 | } |
| 2108 | |
| 2109 | CJSON_PUBLIC(cJSON*) cJSON_AddTrueToObject(cJSON * const object, const char * const name) |
| 2110 | { |
| 2111 | cJSON *true_item = cJSON_CreateTrue(); |
| 2112 | if (add_item_to_object(object, name, true_item, &global_hooks, false)) |
| 2113 | { |
| 2114 | return true_item; |
| 2115 | } |
| 2116 | |
| 2117 | cJSON_Delete(true_item); |
| 2118 | return NULL; |
| 2119 | } |
| 2120 | |
| 2121 | CJSON_PUBLIC(cJSON*) cJSON_AddFalseToObject(cJSON * const object, const char * const name) |
| 2122 | { |
nothing calls this directly
no test coverage detected