5a24289898fd
alloc_release.rs
//! Give memory the system allocator keeps after frees back to the system
//! ([`lightcraft_engine::memory::set_release_hook`]). The platform call lives in
//! `lightcraft-sysmem`, the workspace's only crate allowed `unsafe`.
/// Install the hook.
pub fn install() {
lightcraft_engine::memory::set_release_hook(release);
}
fn release() {
let _ = lightcraft_sysmem::release_free_memory();
}
No file is open. Choose one in the tree, or press Ctrl+O (⌘O on a Mac) to find one by name.
Syntax highlighting could not load. The unmodified read-only text remains available above.