Macro veilid_bugsalot::bug
source · macro_rules! bug { ( $e:expr ) => { ... }; () => { ... }; ( $($tt:tt)+ ) => { ... }; }
Expand description
Reports a bug by logging/breaking. Unlike panic!(...)
this is nonfatal and continuable.
§Examples
use veilid_bugsalot::bug;
bug!();
bug!("A simple bug expression, {} allowed");
bug!("A formatting bug expression: {}", "automatically wrapped in format!(...)");