mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-30 07:07:25 +00:00
C++: use esp-backtrace as a panic handler on the esp platform
This commit is contained in:
parent
da55f4591a
commit
ed0e4726d1
3 changed files with 9 additions and 1 deletions
|
@ -176,8 +176,10 @@ mod allocator {
|
|||
static ALLOCATOR: CAlloc = CAlloc;
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "std"))]
|
||||
#[cfg(all(not(feature = "std"), not(feature = "esp-backtrace")))]
|
||||
#[panic_handler]
|
||||
fn panic(_info: &core::panic::PanicInfo) -> ! {
|
||||
loop {}
|
||||
}
|
||||
#[cfg(feature = "esp-backtrace")]
|
||||
use esp_backtrace as _;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue