aboutsummaryrefslogtreecommitdiff
path: root/core/mem/virtual/virtual_platform.odin
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-03-01 15:52:14 +0000
committergingerBill <bill@gingerbill.org>2022-03-01 15:52:14 +0000
commit7e5342f41fab561337ebd648407b753bd1813abf (patch)
tree479e986c7cbdf0c5c0fd3dc9772673dcf28a1486 /core/mem/virtual/virtual_platform.odin
parent18607e53cba060558b7618e2c12245b363ad2a7f (diff)
Use `contextless` where possibledev-2022-03
Diffstat (limited to 'core/mem/virtual/virtual_platform.odin')
-rw-r--r--core/mem/virtual/virtual_platform.odin6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/mem/virtual/virtual_platform.odin b/core/mem/virtual/virtual_platform.odin
index 85caa6419..d707bc427 100644
--- a/core/mem/virtual/virtual_platform.odin
+++ b/core/mem/virtual/virtual_platform.odin
@@ -10,7 +10,7 @@ Platform_Memory_Block :: struct {
prev, next: ^Platform_Memory_Block,
}
-platform_memory_alloc :: proc(to_commit, to_reserve: uint) -> (block: ^Platform_Memory_Block, err: Allocator_Error) {
+platform_memory_alloc :: proc "contextless" (to_commit, to_reserve: uint) -> (block: ^Platform_Memory_Block, err: Allocator_Error) {
to_commit, to_reserve := to_commit, to_reserve
to_reserve = max(to_commit, to_reserve)
@@ -27,7 +27,7 @@ platform_memory_alloc :: proc(to_commit, to_reserve: uint) -> (block: ^Platform_
}
-platform_memory_free :: proc(block: ^Platform_Memory_Block) {
+platform_memory_free :: proc "contextless" (block: ^Platform_Memory_Block) {
if block != nil {
release(block, block.reserved)
}
@@ -55,7 +55,7 @@ platform_memory_init :: proc() {
}
}
-platform_memory_commit :: proc(block: ^Platform_Memory_Block, to_commit: uint) -> (err: Allocator_Error) {
+platform_memory_commit :: proc "contextless" (block: ^Platform_Memory_Block, to_commit: uint) -> (err: Allocator_Error) {
if to_commit < block.committed {
return nil
}