diff options
Diffstat (limited to 'src/std')
-rw-r--r-- | src/std/mem.c | 2 | ||||
-rw-r--r-- | src/std/mem.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/std/mem.c b/src/std/mem.c index a5a0b88..ede1db4 100644 --- a/src/std/mem.c +++ b/src/std/mem.c @@ -50,7 +50,7 @@ void_pool void_pool_create(arena* a, const char* debug_label, u64 capacity, u64 size_t memory_requirements = capacity * entry_size; void* backing_buf = arena_alloc(a, memory_requirements); - assert(entry_size >= sizeof(void_pool_header)); // TODO: create my own assert with error message + assert(entry_size >= sizeof(void_pool_header)); // TODO: create my own assert with error message void_pool pool = { .capacity = capacity, .entry_size = entry_size, diff --git a/src/std/mem.h b/src/std/mem.h index b256e27..6e76763 100644 --- a/src/std/mem.h +++ b/src/std/mem.h @@ -69,7 +69,7 @@ void void_pool_dealloc(void_pool* pool, u32 raw_handle); } Name##_pool; \ \ static Name##_pool Name##_pool_create(arena* a, u64 cap, u64 entry_size) { \ - void_pool p = void_pool_create(a, "\""#Name"\"", cap, entry_size); \ + void_pool p = void_pool_create(a, "\"" #Name "\"", cap, entry_size); \ return (Name##_pool){ .inner = p }; \ } \ static inline T* Name##_pool_get(Name##_pool* pool, Name##_handle handle) { \ |