aboutsummaryrefslogtreecommitdiff
path: root/src/allocator.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/allocator.h')
-rw-r--r--src/allocator.h3
1 files changed, 3 insertions, 0 deletions
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 @@
3#include <stddef.h> /* size_t */ 3#include <stddef.h> /* size_t */
4 4
5struct allocator { 5struct allocator {
6#ifndef NDEBUG
7 struct allocator *self;
8#endif
6 void *(*allocate)(struct allocator *allocator, size_t n); 9 void *(*allocate)(struct allocator *allocator, size_t n);
7 void (*deallocate)(struct allocator *allocator, void *ptr); 10 void (*deallocate)(struct allocator *allocator, void *ptr);
8}; 11};