MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / cJSON_CreateBool

Function cJSON_CreateBool

external/cJSON/cJSON.c:2494–2503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2492}
2493
2494CJSON_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
2505CJSON_PUBLIC(cJSON *) cJSON_CreateNumber(double num)
2506{

Callers 2

make_cjsonFunction · 0.85
cJSON_AddBoolToObjectFunction · 0.85

Calls 1

cJSON_New_ItemFunction · 0.85

Tested by

no test coverage detected