mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Improve assert information
This commit is contained in:
@@ -36,7 +36,7 @@ TEMP_ALLOCATOR_GUARD_END :: proc(temp: Temp_Allocator) {
|
|||||||
|
|
||||||
@(deferred_out=TEMP_ALLOCATOR_GUARD_END)
|
@(deferred_out=TEMP_ALLOCATOR_GUARD_END)
|
||||||
TEMP_ALLOCATOR_GUARD :: #force_inline proc(collisions: []runtime.Allocator, loc := #caller_location) -> Temp_Allocator {
|
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
|
good_arena: ^runtime.Arena
|
||||||
for i in 0..<MAX_TEMP_ARENA_COUNT {
|
for i in 0..<MAX_TEMP_ARENA_COUNT {
|
||||||
good_arena = &global_default_temp_allocator_arenas[i]
|
good_arena = &global_default_temp_allocator_arenas[i]
|
||||||
|
|||||||
Reference in New Issue
Block a user