| 801 | return item; |
| 802 | } |
| 803 | cJSON *cJSON_CreateInt(uint64 num, int sign) { |
| 804 | cJSON *item = cJSON_New_Item(); |
| 805 | if (item) { |
| 806 | item->type = cJSON_Int; |
| 807 | item->valuedouble = static_cast<double>(num); |
| 808 | item->valueint = static_cast<uint64>(num); |
| 809 | item->sign = sign; |
| 810 | } |
| 811 | return item; |
| 812 | } |
| 813 | cJSON *cJSON_CreateString(const char *string) { |
| 814 | cJSON *item = cJSON_New_Item(); |
| 815 | if (item) { |
no test coverage detected