mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 00:31:34 +11:00
make the allocators clonable
This commit is contained in:
parent
2e97fb2b24
commit
e3ac5de377
|
@ -78,6 +78,7 @@ macro_rules! impl_zst_allocator {
|
||||||
/// );
|
/// );
|
||||||
/// # }
|
/// # }
|
||||||
/// ```
|
/// ```
|
||||||
|
#[derive(Clone)]
|
||||||
pub struct ExternalAllocator;
|
pub struct ExternalAllocator;
|
||||||
|
|
||||||
impl_zst_allocator!(ExternalAllocator, GLOBAL_ALLOC);
|
impl_zst_allocator!(ExternalAllocator, GLOBAL_ALLOC);
|
||||||
|
@ -102,6 +103,7 @@ impl_zst_allocator!(ExternalAllocator, GLOBAL_ALLOC);
|
||||||
/// );
|
/// );
|
||||||
/// # }
|
/// # }
|
||||||
/// ```
|
/// ```
|
||||||
|
#[derive(Clone)]
|
||||||
pub struct InternalAllocator;
|
pub struct InternalAllocator;
|
||||||
|
|
||||||
impl_zst_allocator!(InternalAllocator, __IWRAM_ALLOC);
|
impl_zst_allocator!(InternalAllocator, __IWRAM_ALLOC);
|
||||||
|
|
Loading…
Reference in a new issue