From f883cd5053f7fb0774e81f30da12825481114f69 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Fri, 28 Jun 2024 08:33:12 +0100 Subject: [PATCH] Initialize default `context` in `heap_allocator_other.odin` --- base/runtime/heap_allocator_other.odin | 3 +++ 1 file changed, 3 insertions(+) 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") }