1 2 3 4 5 6 7 8 9 10 11 12
//! Various utility functions/macros used throughout the kernel /// convenient way to return an error if a condition isn't true macro_rules! require { ( $cond:expr, $err:expr ) => { if !($cond) { return Err($err); } }; } pub(crate) use require;