safe_vex/
allocator.rs

1//! Defines the global allocator for the PROS runtime
2
3use core::alloc::Layout;
4use newlib_alloc::Alloc;
5
6/// Sets the global allocator
7#[global_allocator]
8static ALLOCATOR: Alloc = Alloc;
9
10#[alloc_error_handler]
11fn handle(layout: Layout) -> ! {
12    panic!("memory allocation failed: {:#?}", layout);
13}