Add runtime._cleanup_runtime internal call

This commit is contained in:
gingerBill
2021-10-18 12:28:46 +01:00
parent e98e62ec13
commit 7aac8df2f2
3 changed files with 11 additions and 3 deletions

View File

@@ -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)
}