halt

Macro halt 

Source
macro_rules! halt {
    () => { ... };
    ($msg:expr $(,)?) => { ... };
}
Expand description

Halt the system.

May be provided with an optional message which should not contain NULs. The following will not compile:

flipperzero_sys::halt!("Has a \0 NUL");

§Examples

Halt the system with a “Hello world!” message:

flipperzero_sys::crash!("Hello world!");

Halt the system with default “System halt requested.” message:

flipperzero_sys::crash!();