37 #ifndef CAEN_INCLUDE_CAENALLOCATOR_H_ 38 #define CAEN_INCLUDE_CAENALLOCATOR_H_ 153 #define c_allocator_freeall_and_return(A, R) (c_allocator_freeall(A), R) 163 #endif // CAEN_INCLUDE_CAENALLOCATOR_H_ #define c_attribute_alloc_size(...)
Main header and generic tools.
void c_allocator_free(c_allocator_t *allocator, void *ptr)
void * c_allocator_malloc(c_allocator_t *allocator, size_t size)
#define CAEN_UTILITY_DLLAPI
c_allocator_t c_allocator_create()
#define c_attribute_malloc
#define c_declspec_allocator
void(* c_resource_destroy_function)(void *)
void c_allocator_clear(c_allocator_t *allocator)
void c_allocator_release(c_allocator_t *allocator, void *ptr)
int32_t c_allocator_error_count(const c_allocator_t *allocator)
void c_allocator_freeall(c_allocator_t *allocator)
void * c_allocator_resource_create(c_allocator_t *allocator, c_resource_destroy_function df, void *resource)
void * c_allocator_calloc(c_allocator_t *allocator, size_t nmemb, size_t size)