Go to the documentation of this file.
72 #define hit_vmalloc(ptr, size) \
74 ptr = (void *)malloc((size_t)(size)); \
75 if(ptr == NULL) hit_errInternal(__func__,"Memory allocation request failed","",__FILE__,__LINE__) \
93 #define hit_malloc(ptr, type, nmemb) \
95 ptr = (type *)malloc(sizeof(type)* (size_t)(nmemb)); \
96 if(ptr == NULL) hit_errInternal(__func__,"Memory allocation request failed","",__FILE__,__LINE__) \
114 #define hit_calloc(ptr, type, nmemb) \
116 ptr = (type *)calloc( (size_t)(nmemb), sizeof(type)); \
117 if(ptr == NULL) hit_errInternal(__func__,"Memory allocation request failed","",__FILE__,__LINE__) \
134 #define hit_realloc(ptr, type, nmemb) \
136 ptr = (type *)realloc(ptr, sizeof(type)* (size_t)(nmemb)); \
137 if(ptr == NULL) hit_errInternal(__func__,"Memory rellocation request failed","",__FILE__,__LINE__) \
152 #define hit_free(ptr) \