aboutsummaryrefslogtreecommitdiff
path: root/core/runtime
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-10-18 12:28:46 +0100
committergingerBill <bill@gingerbill.org>2021-10-18 12:28:46 +0100
commit7aac8df2f2ddb89ffa8b1d096f41d89e689a2293 (patch)
tree1bb8f08b327bc518e008459e5817b70e78ebe2f7 /core/runtime
parente98e62ec1304f6ba065870503ff6d558c85722d7 (diff)
Add `runtime._cleanup_runtime` internal call
Diffstat (limited to 'core/runtime')
-rw-r--r--core/runtime/core.odin7
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)
}