diff options
Diffstat (limited to 'pkmem.h')
| -rw-r--r-- | pkmem.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -120,6 +120,10 @@ static inline void pkmem_stupid_header_warnings() { (void)stdout; } */ #endif +#ifndef PK_MAX_BUCKET_COUNT +# define PK_MAX_BUCKET_COUNT 8 +#endif + struct pk_memblock { char* data; size_t size; @@ -152,7 +156,7 @@ struct pk_membucket { bool transient; }; -static struct pk_membucket pk_buckets[8]; +static struct pk_membucket pk_buckets[PK_MAX_BUCKET_COUNT]; static int64_t pk_bucket_head = 0; #ifdef PK_MEMORY_DEBUGGER |
