From 7aac8df2f2ddb89ffa8b1d096f41d89e689a2293 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 18 Oct 2021 12:28:46 +0100 Subject: Add `runtime._cleanup_runtime` internal call --- core/runtime/core.odin | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'core/runtime') 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) } -- cgit v1.2.3