| 1981 | } |
| 1982 | |
| 1983 | CJSON_PUBLIC(cJSON*) cJSON_AddTrueToObject(cJSON * const object, const char * const name) |
| 1984 | { |
| 1985 | cJSON *true_item = cJSON_CreateTrue(); |
| 1986 | if (add_item_to_object(object, name, true_item, &global_hooks, false)) |
| 1987 | { |
| 1988 | return true_item; |
| 1989 | } |
| 1990 | |
| 1991 | cJSON_Delete(true_item); |
| 1992 | return NULL; |
| 1993 | } |
| 1994 | |
| 1995 | CJSON_PUBLIC(cJSON*) cJSON_AddFalseToObject(cJSON * const object, const char * const name) |
| 1996 | { |
nothing calls this directly
no test coverage detected