mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Add error value to commit
This commit is contained in:
@@ -24,7 +24,7 @@ static_arena_init :: proc(arena: ^Static_Arena, reserved: uint, commit_size: uin
|
||||
committed = min(committed, reserved)
|
||||
|
||||
ptr := raw_data(data)
|
||||
commit(ptr, uint(committed))
|
||||
commit(ptr, uint(committed)) or_return
|
||||
|
||||
arena.block = memory_block_alloc(commit_size, reserved, {}) or_return
|
||||
arena.total_used = 0
|
||||
|
||||
Reference in New Issue
Block a user