mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-11 09:31:34 +11:00
privatise agb_alloc crate
This commit is contained in:
parent
cd000ca767
commit
feea7d2af1
|
@ -9,9 +9,9 @@ use alloc::boxed::Box;
|
|||
#[agb::entry]
|
||||
fn main(_gba: agb::Gba) -> ! {
|
||||
loop {
|
||||
let a = Box::new_in(1, agb::agb_alloc::EWRAM_ALLOC);
|
||||
let a = Box::new_in(1, agb::EWRAM_ALLOC);
|
||||
let b = Box::new(1);
|
||||
let c = Box::new_in(3, agb::agb_alloc::IWRAM_ALLOC);
|
||||
let c = Box::new_in(3, agb::IWRAM_ALLOC);
|
||||
agb::println!("ewram allocation made to {:?}", &*a as *const _);
|
||||
agb::println!("global allocation made to {:?}", &*b as *const _);
|
||||
agb::println!("iwram allocation made to {:?}", &*c as *const _);
|
||||
|
|
|
@ -162,7 +162,7 @@ pub use agb_macros::entry;
|
|||
pub use agb_sound_converter::include_wav;
|
||||
|
||||
extern crate alloc;
|
||||
pub mod agb_alloc;
|
||||
mod agb_alloc;
|
||||
|
||||
mod agbabi;
|
||||
mod bitarray;
|
||||
|
@ -190,6 +190,8 @@ pub mod syscall;
|
|||
/// Interactions with the internal timers
|
||||
pub mod timer;
|
||||
|
||||
pub use {agb_alloc::EWRAM_ALLOC, agb_alloc::IWRAM_ALLOC};
|
||||
|
||||
#[cfg(not(any(test, feature = "testing")))]
|
||||
#[panic_handler]
|
||||
#[allow(unused_must_use)]
|
||||
|
|
Loading…
Reference in a new issue