[][src]Module teensy::panic

Helper module to define easily panic function.

Panic

The macro in this file will generate a function with the #[panic_handler] needed to compile your code. You can choose a comportement in the following macros.

If you want to create your own panic function you should use this signature:

#[panic_handler]
fn panic(pi: &core::panic::PanicInfo) -> !;

If you want to include one of the already defined panic in your code use:

teensy::define_panic!{empty}