Add runtime._cleanup_runtime internal call

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

No files matched your search

+6 -1
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)
}