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

Function create_reference

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

Utility for handling references. */

Source from the content-addressed store, hash-verified

837}
838/* Utility for handling references. */
839static cJSON *create_reference(cJSON *item)
840{
841 cJSON *ref = cJSON_New_Item();
842 if (!ref)
843 return 0;
844 memcpy(ref, item, sizeof(cJSON));
845 ref->string = 0;
846 ref->type |= cJSON_IsReference;
847 ref->next = ref->prev = 0;
848 return ref;
849}
850
851/* Add item to array/object. */
852void cJSON_AddItemToArray(cJSON *array, cJSON *item)

Callers 2

Calls 1

cJSON_New_ItemFunction · 0.85

Tested by

no test coverage detected