Searched refs:cJSON_InitHooks (Results 1 – 5 of 5) sorted by relevance
75 cJSON_InitHooks(&failing_hooks); in cjson_add_null_should_fail_on_allocation_failure()79 cJSON_InitHooks(NULL); in cjson_add_null_should_fail_on_allocation_failure()111 cJSON_InitHooks(&failing_hooks); in cjson_add_true_should_fail_on_allocation_failure()115 cJSON_InitHooks(NULL); in cjson_add_true_should_fail_on_allocation_failure()124 cJSON_InitHooks(&failing_hooks); in cjson_create_int_array_should_fail_on_allocation_failure()128 cJSON_InitHooks(NULL); in cjson_create_int_array_should_fail_on_allocation_failure()135 cJSON_InitHooks(&failing_hooks); in cjson_create_float_array_should_fail_on_allocation_failure()139 cJSON_InitHooks(NULL); in cjson_create_float_array_should_fail_on_allocation_failure()146 cJSON_InitHooks(&failing_hooks); in cjson_create_double_array_should_fail_on_allocation_failure()150 cJSON_InitHooks(NULL); in cjson_create_double_array_should_fail_on_allocation_failure()[all …]
370 cJSON_InitHooks(NULL); in cjson_functions_should_not_crash_with_null_pointers()
144 CJSON_PUBLIC(void) cJSON_InitHooks(cJSON_Hooks* hooks);
279 …JSON_Parse` is `malloc` and `free` by default but can be changed (globally) with `cJSON_InitHooks`.297 …ter use with your allocator. (usually `free`, depends on what has been set with `cJSON_InitHooks`).556 * `cJSON_InitHooks` is only ever called before using cJSON in any threads.
209 CJSON_PUBLIC(void) cJSON_InitHooks(cJSON_Hooks* hooks) in cJSON_InitHooks() function