|
@@ -241,6 +241,10 @@ CJSON_PUBLIC(double) cJSON_SetNumberHelper(cJSON *object, double number);
|
|
|
/* Macro for iterating over an array */
|
|
|
#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 */
|
|
|
+CJSON_PUBLIC(void *) cJSON_malloc(size_t size);
|
|
|
+CJSON_PUBLIC(void) cJSON_free(void *object);
|
|
|
+
|
|
|
#ifdef __cplusplus
|
|
|
}
|
|
|
#endif
|