| 1989 | } |
| 1990 | |
| 1991 | CJSON_PUBLIC(cJSON*) cJSON_AddTrueToObject(cJSON * const object, const char * const name) |
| 1992 | { |
| 1993 | cJSON *true_item = cJSON_CreateTrue(); |
| 1994 | if (add_item_to_object(object, name, true_item, &global_hooks, false)) |
| 1995 | { |
| 1996 | return true_item; |
| 1997 | } |
| 1998 | |
| 1999 | cJSON_Delete(true_item); |
| 2000 | return NULL; |
| 2001 | } |
| 2002 | |
| 2003 | CJSON_PUBLIC(cJSON*) cJSON_AddFalseToObject(cJSON * const object, const char * const name) |
| 2004 | { |
nothing calls this directly
no test coverage detected