| 995 | return item; |
| 996 | } |
| 997 | cJSON *cJSON_CreateDouble(double num, int sign) |
| 998 | { |
| 999 | cJSON *item = cJSON_New_Item(); |
| 1000 | if (item) |
| 1001 | { |
| 1002 | item->type = cJSON_Double; |
| 1003 | item->valuedouble = num; |
| 1004 | item->valueint = (int64)num; |
| 1005 | item->sign = sign; |
| 1006 | } |
| 1007 | return item; |
| 1008 | } |
| 1009 | cJSON *cJSON_CreateInt(uint64 num, int sign) |
| 1010 | { |
| 1011 | cJSON *item = cJSON_New_Item(); |
no test coverage detected