Skip to content

Commit

Permalink
expose source alloc fully
Browse files Browse the repository at this point in the history
  • Loading branch information
catornot committed Aug 28, 2024
1 parent bec1c0c commit 1c8e401
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/mid/source_alloc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ impl SourceAlloc {
)
})
}

/// returns the underlying source allocator
///
/// the source allocator has more functions which may be useful
pub fn get_underlying_alloc(&self) -> &'static IMemAlloc {
self.0.wait().get()
}
}

unsafe impl GlobalAlloc for SourceAlloc {
Expand Down

0 comments on commit 1c8e401

Please sign in to comment.