diff options
| author | gingerBill <bill@gingerbill.org> | 2024-06-28 08:33:12 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-06-28 08:33:12 +0100 |
| commit | f883cd5053f7fb0774e81f30da12825481114f69 (patch) | |
| tree | 219b0b86ce63d50796de2ae2d04cc784e965d53a /base/runtime | |
| parent | d31f88bfaa377fb2363615bcdeea3768a1258bf6 (diff) | |
Initialize default `context` in `heap_allocator_other.odin`
Diffstat (limited to 'base/runtime')
| -rw-r--r-- | base/runtime/heap_allocator_other.odin | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/base/runtime/heap_allocator_other.odin b/base/runtime/heap_allocator_other.odin index d387aada2..8a7ad1a47 100644 --- a/base/runtime/heap_allocator_other.odin +++ b/base/runtime/heap_allocator_other.odin @@ -3,13 +3,16 @@ package runtime _heap_alloc :: proc "contextless" (size: int, zero_memory := true) -> rawptr { + context = default_context() unimplemented("base:runtime 'heap_alloc' procedure is not supported on this platform") } _heap_resize :: proc "contextless" (ptr: rawptr, new_size: int) -> rawptr { + context = default_context() unimplemented("base:runtime 'heap_resize' procedure is not supported on this platform") } _heap_free :: proc "contextless" (ptr: rawptr) { + context = default_context() unimplemented("base:runtime 'heap_free' procedure is not supported on this platform") } |