macro_rules! crash {
() => { ... };
($msg:expr $(,)?) => { ... };
}Expand description
Crash the system.
May be provided with an optional message which should not contain NULs. The following will not compile:
ⓘ
flipperzero_sys::crash!("Has a \0 NUL");§Examples
Crash the system with a “Hello world!” message:
flipperzero_sys::crash!("Hello world!");Crash the system with default “Fatal Error” message:
flipperzero_sys::crash!();