[util] Define ALLOC_STATE for DEBUG_QF_MEMORY

I haven't used DEBUG_QF_MEMORY for a while, so it suffered a bit of
bitrot.
This commit is contained in:
Bill Currie 2023-09-22 20:22:24 +09:00
parent 5c72ce10d2
commit 2e90022d5c

View file

@ -106,6 +106,9 @@ static struct DARRAY_TYPE(t *) n##_blocks = DARRAY_STATIC_INIT(8)
v = (t *) calloc (1, sizeof (t)); \
} while (0)
#define ALLOC_STATE(t,n) \
static t *n##_freelist;
#define FREE(n, p) do { free (p); } while (0)
#endif