diff options
| author | gingerBill <bill@gingerbill.org> | 2021-10-18 12:28:46 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-10-18 12:28:46 +0100 |
| commit | 7aac8df2f2ddb89ffa8b1d096f41d89e689a2293 (patch) | |
| tree | 1bb8f08b327bc518e008459e5817b70e78ebe2f7 /core/runtime | |
| parent | e98e62ec1304f6ba065870503ff6d558c85722d7 (diff) | |
Add `runtime._cleanup_runtime` internal call
Diffstat (limited to 'core/runtime')
| -rw-r--r-- | core/runtime/core.odin | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/runtime/core.odin b/core/runtime/core.odin index 542340e36..36a88a8b5 100644 --- a/core/runtime/core.odin +++ b/core/runtime/core.odin @@ -384,7 +384,12 @@ Raw_Cstring :: struct { // This is probably only useful for freestanding targets foreign { @(link_name="__$startup_runtime") - _startup_runtime :: proc "contextless" () --- + _startup_runtime :: proc() --- +} + +@(link_name="__$cleanup_runtime") +_cleanup_runtime :: proc() { + default_temp_allocator_destroy(&global_default_temp_allocator_data) } |