ソースを参照

Initialize default `context` in `heap_allocator_other.odin`

gingerBill 1 年間 前
コミット
f883cd5053
1 ファイル変更3 行追加0 行削除
  1. 3 0
      base/runtime/heap_allocator_other.odin

+ 3 - 0
base/runtime/heap_allocator_other.odin

@@ -3,13 +3,16 @@
 package runtime
 package runtime
 
 
 _heap_alloc :: proc "contextless" (size: int, zero_memory := true) -> rawptr {
 _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")
 	unimplemented("base:runtime 'heap_alloc' procedure is not supported on this platform")
 }
 }
 
 
 _heap_resize :: proc "contextless" (ptr: rawptr, new_size: int) -> rawptr {
 _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")
 	unimplemented("base:runtime 'heap_resize' procedure is not supported on this platform")
 }
 }
 
 
 _heap_free :: proc "contextless" (ptr: rawptr) {
 _heap_free :: proc "contextless" (ptr: rawptr) {
+	context = default_context()
 	unimplemented("base:runtime 'heap_free' procedure is not supported on this platform")
 	unimplemented("base:runtime 'heap_free' procedure is not supported on this platform")
 }
 }