diff options
Diffstat (limited to 'mem.h')
-rw-r--r-- | mem.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -12,6 +12,7 @@ void *M(void *p, size_t old, size_t new); #define NEW_OBJ(t, oty) (t*)alloc_obj(sizeof(t), oty) #define FREE(p,t) M(p, sizeof(t), 0) +#define FREE_ARR(p,t,old) M(p, (old)*sizeof(t), 0) Obj *alloc_obj(size_t sz, ObjTy oty); |