diff options
| author | Tadeo hepperle <tadeo@do-mix.de> | 2024-06-26 19:31:00 +0200 |
|---|---|---|
| committer | Tadeo hepperle <tadeo@do-mix.de> | 2024-06-26 19:31:00 +0200 |
| commit | 67e69f719648704c9fa118dcc7cb052d8ab30608 (patch) | |
| tree | d28d893b51ba0796d41bd4fe6b86133cd3c0eb40 /base/runtime/heap_allocator_orca.odin | |
| parent | 18dadd94e3a91d1eed5938f4998b8b7a71765afb (diff) | |
| parent | 8d1827838fb902be4f16b3b028ac0d299a456857 (diff) | |
Merge branch 'master' into fix-vulkan-codegen-arrays-as-proc-args
Diffstat (limited to 'base/runtime/heap_allocator_orca.odin')
| -rw-r--r-- | base/runtime/heap_allocator_orca.odin | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/base/runtime/heap_allocator_orca.odin b/base/runtime/heap_allocator_orca.odin index c22a67ca1..9e719bcd0 100644 --- a/base/runtime/heap_allocator_orca.odin +++ b/base/runtime/heap_allocator_orca.odin @@ -9,7 +9,7 @@ foreign { @(link_name="realloc") _orca_realloc :: proc "c" (ptr: rawptr, size: int) -> rawptr --- } -_heap_alloc :: proc(size: int, zero_memory := true) -> rawptr { +_heap_alloc :: proc "contextless" (size: int, zero_memory := true) -> rawptr { if size <= 0 { return nil } @@ -20,10 +20,10 @@ _heap_alloc :: proc(size: int, zero_memory := true) -> rawptr { } } -_heap_resize :: proc(ptr: rawptr, new_size: int) -> rawptr { +_heap_resize :: proc "contextless" (ptr: rawptr, new_size: int) -> rawptr { return _orca_realloc(ptr, new_size) } -_heap_free :: proc(ptr: rawptr) { +_heap_free :: proc "contextless" (ptr: rawptr) { _orca_free(ptr) } |