Move all cleanup to sys::cleanup

This commit is contained in:
Christiaan Dirkx
2021-04-11 23:20:01 +02:00
parent 5b30662741
commit cf470197ad
13 changed files with 7 additions and 24 deletions

View File

@@ -126,7 +126,10 @@ pub unsafe fn init() {
}
// SAFETY: must be called only once during runtime cleanup.
pub unsafe fn cleanup() {}
pub unsafe fn cleanup() {
args::cleanup();
stack_overflow::cleanup();
}
#[cfg(target_os = "android")]
pub use crate::sys::android::signal;