From f67c54eb50b488ecd2e92ae4c495e89bd3da5663 Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Sun, 21 Jun 2026 17:12:55 +0200 Subject: cleanup allocator interface --- src/allocator.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/allocator.h') diff --git a/src/allocator.h b/src/allocator.h index dd9bb16..2c0c5b9 100644 --- a/src/allocator.h +++ b/src/allocator.h @@ -3,6 +3,9 @@ #include /* size_t */ struct allocator { +#ifndef NDEBUG + struct allocator *self; +#endif void *(*allocate)(struct allocator *allocator, size_t n); void (*deallocate)(struct allocator *allocator, void *ptr); }; -- cgit v1.3