Add @(require_results) everywhere in os2
This commit is contained in:
1 parent
48c1822709
commit
450b9ceaec
13 files changed
+85
-39
No files matched your search
@@ -2,6 +2,7 @@ package os2
|
||||
|
||||
import "base:runtime"
|
||||
|
||||
@(require_results)
|
||||
heap_allocator :: proc() -> runtime.Allocator {
|
||||
return runtime.Allocator{
|
||||
procedure = heap_allocator_proc,
|
||||
@@ -10,6 +11,7 @@ heap_allocator :: proc() -> runtime.Allocator {
|
||||
}
|
||||
|
||||
|
||||
@(require_results)
|
||||
heap_allocator_proc :: proc(allocator_data: rawptr, mode: runtime.Allocator_Mode,
|
||||
size, alignment: int,
|
||||
old_memory: rawptr, old_size: int, loc := #caller_location) -> ([]byte, runtime.Allocator_Error) {
|
||||
|
||||
Reference in new issue
Block a user