mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-23 23:56:34 +11:00
make the allocators clonable
This commit is contained in:
parent
2e97fb2b24
commit
e3ac5de377
1 changed files with 2 additions and 0 deletions
|
@ -78,6 +78,7 @@ macro_rules! impl_zst_allocator {
|
|||
/// );
|
||||
/// # }
|
||||
/// ```
|
||||
#[derive(Clone)]
|
||||
pub struct ExternalAllocator;
|
||||
|
||||
impl_zst_allocator!(ExternalAllocator, GLOBAL_ALLOC);
|
||||
|
@ -102,6 +103,7 @@ impl_zst_allocator!(ExternalAllocator, GLOBAL_ALLOC);
|
|||
/// );
|
||||
/// # }
|
||||
/// ```
|
||||
#[derive(Clone)]
|
||||
pub struct InternalAllocator;
|
||||
|
||||
impl_zst_allocator!(InternalAllocator, __IWRAM_ALLOC);
|
||||
|
|
Loading…
Add table
Reference in a new issue