heap_allocator_other.odin 499 B

123456789101112131415
  1. //+build js, wasi, freestanding, essence
  2. //+private
  3. package runtime
  4. _heap_alloc :: proc(size: int, zero_memory := true) -> rawptr {
  5. unimplemented("base:runtime 'heap_alloc' procedure is not supported on this platform")
  6. }
  7. _heap_resize :: proc(ptr: rawptr, new_size: int) -> rawptr {
  8. unimplemented("base:runtime 'heap_resize' procedure is not supported on this platform")
  9. }
  10. _heap_free :: proc(ptr: rawptr) {
  11. unimplemented("base:runtime 'heap_free' procedure is not supported on this platform")
  12. }