cJSON

mirror of Dave's cJSON
git clone git://git.thc420.xyz/cJSON
Log | Files | Refs | README | LICENSE

commit ddf268b07443f0d6abde6bf2022e6ffb32291c57
parent de5df3e56f2d3edb077937107c7c17adee5aa1ab
Author: Max Bruckner <max@maxbruckner.de>
Date:   Wed, 10 May 2017 13:17:38 +0200

cJSON.h: Document cJSON_ArrayForEach for objects

Diffstat:
McJSON.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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 */