Skip to content
Snippets Groups Projects
Commit 63cd9f0a8feb authored by Alanscut's avatar Alanscut
Browse files

false has been redefined to cJSON_False

parent 3aa99e9a3bbb
Branches
Tags
No related merge requests found
......@@ -1977,7 +1977,7 @@
{
if (array == NULL)
{
return cJSON_False;
return false;
}
return add_item_to_array(array, create_reference(item, &global_hooks));
......@@ -1987,7 +1987,7 @@
{
if ((object == NULL) || (string == NULL))
{
return cJSON_False;
return false;
}
return add_item_to_object(object, string, create_reference(item, &global_hooks), &global_hooks, false);
......
......@@ -332,7 +332,7 @@
cJSON root[1] = {{ NULL, NULL, NULL, 0, NULL, 0, 0, NULL }};
cJSON *child = NULL;
cJSON *replacement = NULL;
cJSON_bool flag = cJSON_False;
cJSON_bool flag = false;
child = cJSON_CreateNumber(1);
TEST_ASSERT_NOT_NULL(child);
......@@ -537,7 +537,7 @@
{
cJSON *object = cJSON_CreateObject();
cJSON *array = cJSON_CreateArray();
cJSON_bool flag = cJSON_False;
cJSON_bool flag = false;
flag = cJSON_AddItemToObject(object, "key", object);
TEST_ASSERT_FALSE_MESSAGE(flag, "add an object to itself should fail");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment