diff options
| author | Damian Tarnawski <gthetarnav@gmail.com> | 2025-09-02 13:03:15 +0200 |
|---|---|---|
| committer | Damian Tarnawski <gthetarnav@gmail.com> | 2025-09-02 13:03:15 +0200 |
| commit | 21fd7c200e95dbbf3e6f5ba3d203c3056db9df65 (patch) | |
| tree | be8481b51d07d6b0d82f8bf0aa801fe13218198a /core | |
| parent | 7e3e15aee6905839f85a0da259977a4c41c997b4 (diff) | |
Add require_results attr to procs returning an allocator
Diffstat (limited to 'core')
| -rw-r--r-- | core/mem/allocators.odin | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/mem/allocators.odin b/core/mem/allocators.odin index 2d7e7b3ea..59fe72fbb 100644 --- a/core/mem/allocators.odin +++ b/core/mem/allocators.odin @@ -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, |