relib_internal_shared 0.7.0

relib is a framework for reloadable dynamic libraries
Documentation
1
2
3
4
5
6
7
8
9
use crate::{ModuleId, SliceAllocatorOp, StableLayout, Str};

#[expect(non_camel_case_types)]
pub trait ___Internal___Imports___ {
  fn on_alloc(module: ModuleId, ptr: *mut u8, layout: StableLayout);
  fn on_cached_allocs(module: ModuleId, ops: SliceAllocatorOp);
  fn unrecoverable(module: ModuleId, message: Str) -> !;
  fn is_ptr_allocated(module: ModuleId, ptr: *mut u8) -> bool;
}