MCPcopy Create free account
hub / github.com/OpenDriveLab/OpenLane / cJSON_CreateBool

Function cJSON_CreateBool

eval/LANE_evaluation/lane2d/src/cJSON.c:996–1002  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

994 return item;
995}
996cJSON *cJSON_CreateBool(int b)
997{
998 cJSON *item = cJSON_New_Item();
999 if (item)
1000 item->type = b ? cJSON_True : cJSON_False;
1001 return item;
1002}
1003cJSON *cJSON_CreateDouble(double num, int sign)
1004{
1005 cJSON *item = cJSON_New_Item();

Callers 3

AddMethod · 0.85
ReplaceMethod · 0.85
AddAsFirstMethod · 0.85

Calls 1

cJSON_New_ItemFunction · 0.85

Tested by

no test coverage detected