summaryrefslogtreecommitdiff
path: root/mem.h
diff options
context:
space:
mode:
Diffstat (limited to 'mem.h')
-rw-r--r--mem.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mem.h b/mem.h
index 0607b14..8c528b9 100644
--- a/mem.h
+++ b/mem.h
@@ -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);