| 1973 | } |
| 1974 | |
| 1975 | CJSON_PUBLIC(cJSON*) cJSON_AddTrueToObject(cJSON * const object, const char * const name) |
| 1976 | { |
| 1977 | cJSON *true_item = cJSON_CreateTrue(); |
| 1978 | if (add_item_to_object(object, name, true_item, &global_hooks, false)) |
| 1979 | { |
| 1980 | return true_item; |
| 1981 | } |
| 1982 | |
| 1983 | cJSON_Delete(true_item); |
| 1984 | return NULL; |
| 1985 | } |
| 1986 | |
| 1987 | CJSON_PUBLIC(cJSON*) cJSON_AddFalseToObject(cJSON * const object, const char * const name) |
| 1988 | { |
nothing calls this directly
no test coverage detected