allocator-suite 0.1.7

Allocator Suite for various allocation types
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[doc(hidden)]
#[macro_export]
macro_rules! global_alloc {
    () => {
        #[inline(always)]
        unsafe fn alloc(&self, layout: Layout) -> *mut u8 {
            self.global_alloc_alloc(layout)
        }

        #[inline(always)]
        unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) {
            self.global_alloc_dealloc(ptr, layout)
        }
    };
}