mirror of
https://github.com/DaveGamble/cJSON.git
synced 2025-05-17 15:06:48 +08:00
false has been redefined to cJSON_False
This commit is contained in:
4
cJSON.c
4
cJSON.c
@ -1977,7 +1977,7 @@ CJSON_PUBLIC(cJSON_bool) cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item
|
||||
{
|
||||
if (array == NULL)
|
||||
{
|
||||
return cJSON_False;
|
||||
return false;
|
||||
}
|
||||
|
||||
return add_item_to_array(array, create_reference(item, &global_hooks));
|
||||
@ -1987,7 +1987,7 @@ CJSON_PUBLIC(cJSON_bool) cJSON_AddItemReferenceToObject(cJSON *object, const cha
|
||||
{
|
||||
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);
|
||||
|
Reference in New Issue
Block a user