From 1b21bcd150145ac83351a159d82e4f712ac544b7 Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Fri, 29 Dec 2017 23:29:09 +0100 Subject: [PATCH] cJSON_Add..ToObject: Add comment to header file --- cJSON.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cJSON.h b/cJSON.h index 1734513..c3d8c76 100644 --- a/cJSON.h +++ b/cJSON.h @@ -245,7 +245,8 @@ CJSON_PUBLIC(cJSON_bool) cJSON_Compare(const cJSON * const a, const cJSON * cons CJSON_PUBLIC(void) cJSON_Minify(char *json); -/* Macros for creating things quickly. */ +/* Helper functions for creating and adding items to an object at the same time. + * They return the added item or NULL on failure. */ CJSON_PUBLIC(cJSON*) cJSON_AddNullToObject(cJSON * const object, const char * const name); CJSON_PUBLIC(cJSON*) cJSON_AddTrueToObject(cJSON * const object, const char * const name); CJSON_PUBLIC(cJSON*) cJSON_AddFalseToObject(cJSON * const object, const char * const name);