Next: handlers standard realloc, Previous: handlers standard malloc, Up: handlers standard [Contents][Index]
calloc() with the standard allocatorUsage example:
cce_location_t L[1];
ccmem_clean_handler_t P_H[1];
if (cce_location(L)) {
cce_run_catch_handlers_raise(L, upper_L);
} else {
void * P = ccmem_std_calloc_guarded(L, P_H, 16, 4096);
memset(P, 0, 16 * 4096);
cce_run_body_handlers(L);
}
Wrapper for ccmem_calloc_guarded_clean() that registers the allocated memory to be released by
the handler referenced by P_H, using the standard allocator.
Wrapper for ccmem_calloc_guarded_error() that registers the allocated memory to be released by
the handler referenced by P_H, using the standard allocator.
If the argument P_H is a pointer of type:
ccmem_clean_handler_tThe macro use expands into a call to ccmem_std_calloc_guarded_clean().
ccmem_error_handler_tThe macro use expands into a call to ccmem_std_calloc_guarded_error().
Next: handlers standard realloc, Previous: handlers standard malloc, Up: handlers standard [Contents][Index]
This document describes version 0.2.2-devel.3 of CCMemory.