mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-12 22:31:25 -07:00
Add require_results attr to procs returning an allocator
This commit is contained in:
@@ -2436,6 +2436,7 @@ compat_allocator_init :: proc(rra: ^Compat_Allocator, allocator := context.alloc
|
||||
rra.parent = allocator
|
||||
}
|
||||
|
||||
@(require_results)
|
||||
compat_allocator :: proc(rra: ^Compat_Allocator) -> Allocator {
|
||||
return Allocator{
|
||||
data = rra,
|
||||
|
||||
Reference in New Issue
Block a user