diff options
| author | flysand7 <thebumboni@gmail.com> | 2024-09-08 18:50:44 +1100 |
|---|---|---|
| committer | flysand7 <thebumboni@gmail.com> | 2024-09-08 18:52:55 +1100 |
| commit | 167ced8ad161e0c8a84fd7b4fc3c94afff27236e (patch) | |
| tree | dd3a648bb9afab92944163360ae4ffdbf0393de0 /tests | |
| parent | 05df34f99c97eefc6957786150e19010cb84c230 (diff) | |
[mem]: Don't use named params for dynamic pool in tests
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/core/mem/test_mem_dynamic_pool.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/core/mem/test_mem_dynamic_pool.odin b/tests/core/mem/test_mem_dynamic_pool.odin index d1086cfe6..fa204d3b1 100644 --- a/tests/core/mem/test_mem_dynamic_pool.odin +++ b/tests/core/mem/test_mem_dynamic_pool.odin @@ -6,7 +6,7 @@ import "core:mem" expect_pool_allocation :: proc(t: ^testing.T, expected_used_bytes, num_bytes, alignment: int) { pool: mem.Dynamic_Pool - mem.dynamic_pool_init(pool = &pool, alignment = alignment) + mem.dynamic_pool_init(&pool, alignment = alignment) pool_allocator := mem.dynamic_pool_allocator(&pool) element, err := mem.alloc(num_bytes, alignment, pool_allocator) @@ -48,7 +48,7 @@ expect_pool_allocation_out_of_band :: proc(t: ^testing.T, num_bytes, out_band_si testing.expect(t, num_bytes >= out_band_size, "Sanity check failed, your test call is flawed! Make sure that num_bytes >= out_band_size!") pool: mem.Dynamic_Pool - mem.dynamic_pool_init(pool = &pool, out_band_size = out_band_size) + mem.dynamic_pool_init(&pool, out_band_size = out_band_size) pool_allocator := mem.dynamic_pool_allocator(&pool) element, err := mem.alloc(num_bytes, allocator = pool_allocator) |