32 void *
gel_debug_new(
const char *file,
int line,
const char *t,
int size);
34 void *
gel_debug_newv(
const char *file,
int line,
const char *t,
int size,
int n);
35 void *
gel_debug_newvc(
const char *file,
int line,
const char *t,
int size,
int n);
41 # define new(t) ((t *)malloc(sizeof(t)))
42 # define newc(t) ((t *)calloc(sizeof(t), 1))
43 # define newv(t, n) ((t *)malloc(sizeof(t) * n))
44 # define newvc(t, n) ((t *)calloc(sizeof(t), n))
46 # define new(t) ((t *)gel_debug_new(__FILE__, __LINE__, #t, sizeof(t)))
47 # define newc(t) ((t *)gel_debug_newc(__FILE__, __LINE__, #t, sizeof(t)))
48 # define newv(t, n) ((t *)gel_debug_newv(__FILE__, __LINE__, #t, sizeof(t), n))
49 # define newvc(t, n) ((t *)gel_debug_newvc(__FILE__, __LINE__, #t, sizeof(t), n))
52 #ifdef GEL_DEBUG_NOFREE
54 #elif defined(GEL_DEBUG_MEM)
55 # define delete(p) gel_debug_delete(__FILE__, __LINE__, p)
57 # define delete(p) free(p)
void * gel_debug_newvc(const char *file, int line, const char *t, int size, int n)
void * gel_debug_delete(const char *file, int line, void *p)
void * gel_debug_newc(const char *file, int line, const char *t, int size)
void * gel_debug_new(const char *file, int line, const char *t, int size)
void * gel_debug_newv(const char *file, int line, const char *t, int size, int n)