From ddf268b07443f0d6abde6bf2022e6ffb32291c57 Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Wed, 10 May 2017 13:17:38 +0200 Subject: [PATCH] cJSON.h: Document cJSON_ArrayForEach for objects --- cJSON.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cJSON.h b/cJSON.h index eccf6bc..3760591 100644 --- a/cJSON.h +++ b/cJSON.h @@ -249,7 +249,7 @@ CJSON_PUBLIC(void) cJSON_Minify(char *json); CJSON_PUBLIC(double) cJSON_SetNumberHelper(cJSON *object, double number); #define cJSON_SetNumberValue(object, number) ((object != NULL) ? cJSON_SetNumberHelper(object, (double)number) : (number)) -/* Macro for iterating over an array */ +/* Macro for iterating over an array or object */ #define cJSON_ArrayForEach(element, array) for(element = (array != NULL) ? (array)->child : NULL; element != NULL; element = element->next) /* malloc/free objects using the malloc/free functions that have been set with cJSON_InitHooks */