Introduce the allocator stuff again
This commit is contained in:
@@ -9,7 +9,7 @@ enum CmpRes
|
||||
};
|
||||
|
||||
#define count_bigint_alloc() (bigint_allocator != thread_ctx.scratch ? bigint_allocation_count++ : 0)
|
||||
#define malloc_arena(x) (count_bigint_alloc(), arena_push_size(bigint_allocator, x, AF_ZeroMemory))
|
||||
#define malloc_arena(x) (count_bigint_alloc(), allocate_size(bigint_allocator, x))
|
||||
#define ALLOC_DIGITS(_digits) (uint64_t *)((_digits) ? malloc_arena(sizeof(uint64_t) * (_digits)) : NULL)
|
||||
#define FATAL_ERROR(x) compiler_error(0, x)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user