Add require_results attr to procs returning an allocator

This commit is contained in:
Damian Tarnawski committed 2025-09-02 13:03:15 +02:00
1 parent 7e3e15aee6
commit 21fd7c200e
6 files changed
+8 -1

No files matched your search

+1
View File
@@ -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,