diff options
| author | Lucas Perlind <perlindluca@gmail.com> | 2025-05-01 18:24:41 +1000 |
|---|---|---|
| committer | Lucas Perlind <perlindluca@gmail.com> | 2025-05-08 17:41:03 +1000 |
| commit | 14c5096b81d38ecc585c598ca6d15c5ca342aca5 (patch) | |
| tree | 5eb98afdb3d35a55a560ea30dd713015bec40821 /core/os | |
| parent | 9f2d008a8a0d53ac58cdc4bdf1279f40215f28c7 (diff) | |
Improve assert information
Diffstat (limited to 'core/os')
| -rw-r--r-- | core/os/os2/allocators.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/os/os2/allocators.odin b/core/os/os2/allocators.odin index 7dba69749..cedfbdee1 100644 --- a/core/os/os2/allocators.odin +++ b/core/os/os2/allocators.odin @@ -36,7 +36,7 @@ TEMP_ALLOCATOR_GUARD_END :: proc(temp: Temp_Allocator) { @(deferred_out=TEMP_ALLOCATOR_GUARD_END) TEMP_ALLOCATOR_GUARD :: #force_inline proc(collisions: []runtime.Allocator, loc := #caller_location) -> Temp_Allocator { - assert(len(collisions) <= MAX_TEMP_ARENA_COLLISIONS) + assert(len(collisions) <= MAX_TEMP_ARENA_COLLISIONS, "Maximum collision count exceeded. MAX_TEMP_ARENA_COUNT must be increased!") good_arena: ^runtime.Arena for i in 0..<MAX_TEMP_ARENA_COUNT { good_arena = &global_default_temp_allocator_arenas[i] |