Remove core:os dependency for base:runtime

This commit is contained in:
gingerBill
2024-01-28 22:40:46 +00:00
parent eee8e0faa2
commit 9a16bc5fc5
19 changed files with 200 additions and 118 deletions
+15
View File
@@ -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")
}