zero macro

SVN revision: 3806
This commit is contained in:
Carsten Haitzler 2000-11-03 00:27:37 +00:00
parent db9b37768c
commit 5787acde54
1 changed files with 2 additions and 1 deletions

View File

@ -673,7 +673,8 @@ if (!atom) atom = e_atom_get(name);
#define MEMCPY(src, dst, type, num) memcpy(dst, src, sizeof(type) * (num))
#define NEW(dat, num) malloc(sizeof(dat) * (num))
#define NEW(dat, num) malloc(sizeof(dat) * (num));
#define ZERO(ptr, dat, num) memset(ptr, 0, sizeof(dat) * (num));
#define NEW_PTR(num) malloc(sizeof(void *) * (num))
#define FREE(dat) {free(dat); dat = NULL;}
#define IF_FREE(dat) {if (dat) FREE(dat);}