| 2088 | } |
| 2089 | |
| 2090 | CJSON_PUBLIC(cJSON*) cJSON_AddNullToObject(cJSON * const object, const char * const name) |
| 2091 | { |
| 2092 | cJSON *null = cJSON_CreateNull(); |
| 2093 | if (add_item_to_object(object, name, null, &global_hooks, false)) |
| 2094 | { |
| 2095 | return null; |
| 2096 | } |
| 2097 | |
| 2098 | cJSON_Delete(null); |
| 2099 | return NULL; |
| 2100 | } |
| 2101 | |
| 2102 | CJSON_PUBLIC(cJSON*) cJSON_AddTrueToObject(cJSON * const object, const char * const name) |
| 2103 | { |
nothing calls this directly
no test coverage detected
searching dependent graphs…