| 2492 | } |
| 2493 | |
| 2494 | CJSON_PUBLIC(cJSON *) cJSON_CreateBool(cJSON_bool boolean) |
| 2495 | { |
| 2496 | cJSON *item = cJSON_New_Item(&global_hooks); |
| 2497 | if(item) |
| 2498 | { |
| 2499 | item->type = boolean ? cJSON_True : cJSON_False; |
| 2500 | } |
| 2501 | |
| 2502 | return item; |
| 2503 | } |
| 2504 | |
| 2505 | CJSON_PUBLIC(cJSON *) cJSON_CreateNumber(double num) |
| 2506 | { |
no test coverage detected