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