macro_rules! BUG_ON {
($cond:expr) => { ... };
($cond:expr, $msg:expr) => { ... };
}Expand description
This is a macro that is used to panic when a condition is true. It is similar to the BUG_ON() macro in the Linux kernel. Link: https://www.kernel.org/