Go to the documentation of this file.
31 #ifndef ALLOCATE_UTILS_H_
32 #define ALLOCATE_UTILS_H_
49 void **
array2D_new(
size_t row_size,
size_t col_size,
size_t element_size,
size_t pointer_size);
65 #define NEW_INSTANCE(type) g_new(type,1)
75 #define NEW_ARRAY_INSTANCE(element_count,element_type) g_new(element_type,element_count)
85 #define NEW_ARRAY2D_INSTANCE(row_size,col_size,element_type) (element_type**) array2D_new(row_size,col_size,sizeof(element_type),sizeof(element_type*));