Home
last modified time | relevance | path

Searched refs:cJSON_IsReference (Results 1 – 7 of 7) sorted by relevance

/third_party/cJSON/tests/
Dmisc_tests.c530 TEST_ASSERT_EQUAL_INT(cJSON_IsReference | cJSON_String, string_reference->type); in cjson_create_string_reference_should_create_a_string_reference()
548 TEST_ASSERT_EQUAL_INT(cJSON_Object | cJSON_IsReference, number_reference->type); in cjson_create_object_reference_should_create_an_object_reference()
566 TEST_ASSERT_EQUAL_INT(cJSON_Array | cJSON_IsReference, number_reference->type); in cjson_create_array_reference_should_create_an_array_reference()
709 TEST_ASSERT_TRUE(refobj->type & cJSON_IsReference); in cjson_set_bool_value_must_not_break_objects()
712 TEST_ASSERT_TRUE(refobj->type & cJSON_IsReference); in cjson_set_bool_value_must_not_break_objects()
715 TEST_ASSERT_TRUE(refobj->type & cJSON_IsReference); in cjson_set_bool_value_must_not_break_objects()
720 TEST_ASSERT_TRUE(refobj->type & cJSON_IsReference); in cjson_set_bool_value_must_not_break_objects()
723 TEST_ASSERT_TRUE(refobj->type & cJSON_IsReference); in cjson_set_bool_value_must_not_break_objects()
726 TEST_ASSERT_TRUE(refobj->type & cJSON_IsReference); in cjson_set_bool_value_must_not_break_objects()
Dcommon.h34 if ((item->valuestring != NULL) && !(item->type & cJSON_IsReference)) in reset()
104 #define assert_has_no_reference(item) TEST_ASSERT_BITS_MESSAGE(cJSON_IsReference, 0, item->type, "I…
/third_party/cJSON/
DcJSON.c259 if (!(item->type & cJSON_IsReference) && (item->child != NULL)) in cJSON_Delete()
263 if (!(item->type & cJSON_IsReference) && (item->valuestring != NULL)) in cJSON_Delete()
404 if ((object == NULL) || !(object->type & cJSON_String) || (object->type & cJSON_IsReference)) in cJSON_SetValuestring()
1956 reference->type |= cJSON_IsReference; in create_reference()
2487 item->type = cJSON_String | cJSON_IsReference; in cJSON_CreateStringReference()
2498 item->type = cJSON_Object | cJSON_IsReference; in cJSON_CreateObjectReference()
2508 item->type = cJSON_Array | cJSON_IsReference; in cJSON_CreateArrayReference()
2735 newitem->type = item->type & (~cJSON_IsReference); in cJSON_Duplicate()
DcJSON.h99 #define cJSON_IsReference 256 macro
DREADME.md225 * `cJSON_IsReference`: Specifies that the item that `child` points to and/or `valuestring` is not o…
/third_party/vulkan-loader/loader/
DcJSON.h43 #define cJSON_IsReference 256 macro
DcJSON.c77 if (!(c->type & cJSON_IsReference) && c->child) cJSON_Delete(c->child); in cJSON_Delete()
78 … if (!(c->type & cJSON_IsReference) && c->valuestring) cJSON_Free(c->pAllocator, c->valuestring); in cJSON_Delete()
944 ref->type |= cJSON_IsReference; in create_reference()
1150 …newitem->type = item->type & (~cJSON_IsReference), newitem->valueint = item->valueint, newitem->va… in cJSON_Duplicate()