MCPcopy Create free account
hub / github.com/SVF-tools/SVF / cJSON_CreateBool

Function cJSON_CreateBool

svf/lib/Util/cJSON.cpp:2425–2434  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2423}
2424
2425CJSON_PUBLIC(cJSON *) cJSON_CreateBool(cJSON_bool boolean)
2426{
2427 cJSON *item = cJSON_New_Item(&global_hooks);
2428 if(item)
2429 {
2430 item->type = boolean ? cJSON_True : cJSON_False;
2431 }
2432
2433 return item;
2434}
2435
2436CJSON_PUBLIC(cJSON *) cJSON_CreateNumber(double num)
2437{

Callers 1

cJSON_AddBoolToObjectFunction · 0.85

Calls 1

cJSON_New_ItemFunction · 0.85

Tested by

no test coverage detected