added GlobalAlloc
This commit is contained in:
@@ -73,8 +73,13 @@ pub use libc_print as print;
|
||||
pub use libc_println as println;
|
||||
pub use libc_writeln as writeln;
|
||||
|
||||
pub use libc_alloc::LibcAlloc;
|
||||
|
||||
pub const SOURCE: &str = "https://git.tebibyte.media/emma/spd.git";
|
||||
|
||||
#[global_allocator]
|
||||
pub static ALLOCATOR: LibcAlloc = LibcAlloc;
|
||||
|
||||
#[panic_handler]
|
||||
pub fn panic(info: &panic::PanicInfo) -> ! {
|
||||
eprintln!("{:?}", info);
|
||||
|
||||
Reference in New Issue
Block a user