Make runtime.heap_alloc contextless

This commit is contained in:
gingerBill
2024-06-25 09:38:49 +01:00
parent c098739484
commit 93441a043a
5 changed files with 15 additions and 15 deletions
+3 -3
View File
@@ -2,14 +2,14 @@
//+private
package runtime
_heap_alloc :: proc(size: int, zero_memory := true) -> rawptr {
_heap_alloc :: proc "contextless" (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 {
_heap_resize :: proc "contextless" (ptr: rawptr, new_size: int) -> rawptr {
unimplemented("base:runtime 'heap_resize' procedure is not supported on this platform")
}
_heap_free :: proc(ptr: rawptr) {
_heap_free :: proc "contextless" (ptr: rawptr) {
unimplemented("base:runtime 'heap_free' procedure is not supported on this platform")
}