aboutsummaryrefslogtreecommitdiff
path: root/base/runtime/heap_allocator_other.odin
diff options
context:
space:
mode:
Diffstat (limited to 'base/runtime/heap_allocator_other.odin')
-rw-r--r--base/runtime/heap_allocator_other.odin15
1 files changed, 15 insertions, 0 deletions
diff --git a/base/runtime/heap_allocator_other.odin b/base/runtime/heap_allocator_other.odin
new file mode 100644
index 000000000..45049c7e9
--- /dev/null
+++ b/base/runtime/heap_allocator_other.odin
@@ -0,0 +1,15 @@
+//+build js, wasi, freestanding, essence
+//+private
+package runtime
+
+_heap_alloc :: proc(size: int, zero_memory := true) -> rawptr {
+ unimplemented("base:runtime 'heap_alloc' procedure is not supported on this platform")
+}
+
+_heap_resize :: proc(ptr: rawptr, new_size: int) -> rawptr {
+ unimplemented("base:runtime 'heap_resize' procedure is not supported on this platform")
+}
+
+_heap_free :: proc(ptr: rawptr) {
+ unimplemented("base:runtime 'heap_free' procedure is not supported on this platform")
+} \ No newline at end of file