aboutsummaryrefslogtreecommitdiff
path: root/base/runtime/heap_allocator_other.odin
blob: 507dbf3181ef8ea9c042fe9a4295362bbd87223a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#+build js, wasi, freestanding, essence
#+private
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")
}